/etc/nginx/nginx.conf:
В секции http
client_max_body_size 25M;
Дальше - перезапуск:
service nginx restart
php.ini
upload_max_filesize = 200M post_max_size=0
service php-fpm restart
/var/www/html/wiki/conf/mime.local.conf:
Добавить нужные расширения:
txt text/plain xml text/xml csv text/csv sql3 !application/x-sqlite3 bmp conf text/plain
Другой вариант: разрешить всё…
//if(!preg_match('/\.('.$regex.')$/i',$fn)) { // return array($lang['uploadwrong'],-1); //}
Иначе нет картинок в pdf на выходе.
yum install php-gd service nginx restart
if($hasToC) { //Note: - for double-sided document the ToC is always on an even number of pages, so that the following content is on a correct odd/even page // - first page of ToC starts always at odd page (so eventually an additional blank page is included before) // - there is no page numbering at the pages of the ToC $mpdf->TOCpagebreakByArray( array( 'toc-preHTML' => '<h2>' . $this->getLang('tocheader') . '</h2>', 'toc-bookmarkText' => $this->getLang('tocheader'), 'links' => true, 'outdent' => '1em', 'resetpagenum' => false, //start pagenumbering after ToC <<<<<==== Changed to FALSE 'pagenumstyle' => '1' ) ); $html .= '<tocpagebreak>'; }
Загрузить через панель управления плагин (поставить галку перезаписать файлы)
В настройках плагина указать: @NS@: