1
0

use $serendipity['template_backend']

References #148
This commit is contained in:
Ian
2014-11-18 11:27:47 +01:00
parent 14c5a5b9df
commit 5e03dfb398

View File

@ -1025,15 +1025,16 @@ function serendipity_smarty_init($vars = array()) {
}
}
$wysiwyg_customPlugin = $wysiwyg_customConfig = null;
if (defined('IN_serendipity_admin') && $serendipity['wysiwyg']) {
$wysiwyg_customPlugin = $serendipity['serendipityHTTPPath'] . 'htmlarea/ckeditor_s9y_plugin.js';
$wysiwyg_customConfig = $serendipity['serendipityHTTPPath'] . 'htmlarea/ckeditor_s9y_config.js';
if (file_exists($serendipity['serendipityPath'] . $serendipity['templatePath'] . $serendipity['defaultTemplate'] . '/admin/ckeditor_custom_plugin.js') ) {
$wysiwyg_customPlugin = $serendipity['serendipityHTTPPath'] . $serendipity['templatePath'] . $serendipity['defaultTemplate'] . '/admin/ckeditor_custom_plugin.js';
if (file_exists($serendipity['serendipityPath'] . $serendipity['templatePath'] . $serendipity['template_backend'] . '/admin/ckeditor_custom_plugin.js') ) {
$wysiwyg_customPlugin = $serendipity['serendipityHTTPPath'] . $serendipity['templatePath'] . $serendipity['template_backend'] . '/admin/ckeditor_custom_plugin.js';
}
if (file_exists($serendipity['serendipityPath'] . $serendipity['templatePath'] . $serendipity['defaultTemplate'] . '/admin/ckeditor_custom_config.js') ) {
$wysiwyg_customConfig = $serendipity['serendipityHTTPPath'] . $serendipity['templatePath'] . $serendipity['defaultTemplate'] . '/admin/ckeditor_custom_config.js';
if (file_exists($serendipity['serendipityPath'] . $serendipity['templatePath'] . $serendipity['template_backend'] . '/admin/ckeditor_custom_config.js') ) {
$wysiwyg_customConfig = $serendipity['serendipityHTTPPath'] . $serendipity['templatePath'] . $serendipity['template_backend'] . '/admin/ckeditor_custom_config.js';
}
}