diff options
| author | lsces <lester@lsces.co.uk> | 2026-04-05 10:53:56 +0100 |
|---|---|---|
| committer | lsces <lester@lsces.co.uk> | 2026-04-05 10:53:56 +0100 |
| commit | 3d13d497b77227f4659b0a9fbab3c742574ce88f (patch) | |
| tree | eb582b6b070f58006a9a9f48d3193120b4496ca7 /smarty | |
| parent | d9dd488ed928399e17ba94f40e2eb562f4404232 (diff) | |
| download | ckeditor-3d13d497b77227f4659b0a9fbab3c742574ce88f.tar.gz ckeditor-3d13d497b77227f4659b0a9fbab3c742574ce88f.tar.bz2 ckeditor-3d13d497b77227f4659b0a9fbab3c742574ce88f.zip | |
Tidy to the current production code. Ideally this needs upgrading to the latest ckeditor, but since the source option is now behind a paywall ... an alternative editor may be a better option.
Diffstat (limited to 'smarty')
| -rw-r--r-- | smarty/block.ckeditor.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/smarty/block.ckeditor.php b/smarty/block.ckeditor.php index f3a028e..9ef99aa 100644 --- a/smarty/block.ckeditor.php +++ b/smarty/block.ckeditor.php @@ -37,8 +37,8 @@ function smarty_block_ckeditor($params, $content, &$smarty) $smarty->trigger_error('ckeditor: required parameter "name" missing'); } - static $base_arguments = array(); - static $config_arguments = array(); + static $base_arguments = []; + static $config_arguments = []; // Test if editor has been loaded before if(!count($base_arguments)) $init = TRUE; @@ -79,7 +79,7 @@ function smarty_block_ckeditor($params, $content, &$smarty) if($init) { - $out .= '<script type="text/javascript" src="' . $base_arguments['BasePath'] . 'ckeditor.js"></script>'; + $out .= '<script src="' . $base_arguments['BasePath'] . 'ckeditor.js"></script>'; } $out .= "\n<script type=\"text/javascript\">\n"; |
