Browse Source

Fix comment in js must be a js comment

Laurent Destailleur 4 years ago
parent
commit
9c535d6d7e
1 changed files with 1 additions and 1 deletions
  1. 1 1
      htdocs/main.inc.php

+ 1 - 1
htdocs/main.inc.php

@@ -1448,8 +1448,8 @@ function top_htmlhead($head, $title = '', $disablejs = 0, $disablehead = 0, $arr
                 {
                 	$pathckeditor = constant('JS_CKEDITOR');
                 }
-                print '<!-- enable ckeditor by main.inc.php -->';
                 print '<script>';
+                print '/* enable ckeditor by main.inc.php */';
                 print 'var CKEDITOR_BASEPATH = \''.$pathckeditor.'\';'."\n";
                 print 'var ckeditorConfig = \''.dol_buildpath($themesubdir.'/theme/'.$conf->theme.'/ckeditor/config.js'.($ext ? '?'.$ext : ''), 1).'\';'."\n"; // $themesubdir='' in standard usage
                 print 'var ckeditorFilebrowserBrowseUrl = \''.DOL_URL_ROOT.'/core/filemanagerdol/browser/default/browser.php?Connector='.DOL_URL_ROOT.'/core/filemanagerdol/connectors/php/connector.php\';'."\n";