changes
This commit is contained in:
@@ -53,7 +53,7 @@ function transliterate($text) {
|
||||
return str_replace($cyr, $lat, $text);
|
||||
}
|
||||
|
||||
// Функция для очистки имени файла с транслитерацией
|
||||
// Функция для очистки имени файла
|
||||
function cleanFilename($filename) {
|
||||
// Сначала транслитерируем
|
||||
$filename = transliterate($filename);
|
||||
@@ -130,7 +130,6 @@ function handleCoverUpload($file, $book_id) {
|
||||
}
|
||||
|
||||
function optimizeImage($file_path) {
|
||||
// Простая оптимизация - ресайз до максимальных размеров
|
||||
list($width, $height, $type) = getimagesize($file_path);
|
||||
|
||||
$max_width = 800;
|
||||
@@ -190,8 +189,6 @@ function optimizeImage($file_path) {
|
||||
}
|
||||
}
|
||||
|
||||
// В includes/functions.php, после функции handleCoverUpload
|
||||
|
||||
function handleAvatarUpload($file, $user_id) {
|
||||
global $pdo;
|
||||
|
||||
|
||||
@@ -3,13 +3,12 @@ require_once 'Parsedown.php';
|
||||
|
||||
class ParsedownExtra extends Parsedown {
|
||||
protected function blockQuote($Line) {
|
||||
// Îáðàáîòêà äèàëîãîâ
|
||||
if (preg_match('/^—\s+/', $Line['text'])) {
|
||||
if (preg_match('/^�\s+/', $Line['text'])) {
|
||||
return array(
|
||||
'element' => array(
|
||||
'name' => 'div',
|
||||
'attributes' => array('class' => 'dialogue'),
|
||||
'text' => ltrim($Line['text'], '— ')
|
||||
'text' => ltrim($Line['text'], '� ')
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user