From c39a86fb1c89e86a7229206a6d3ac4a13187545f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Loguercio?= Date: Fri, 13 May 2016 09:36:04 -0500 Subject: [PATCH] Fix Load ckeditor js plugin only when user is logged on - Refs #8233 --- main/inc/lib/template.lib.php | 4 +- main/template/default/layout/header.js.tpl | 127 +++++++++++---------- 2 files changed, 67 insertions(+), 64 deletions(-) diff --git a/main/inc/lib/template.lib.php b/main/inc/lib/template.lib.php index 74da521e46..7abffb8ffe 100755 --- a/main/inc/lib/template.lib.php +++ b/main/inc/lib/template.lib.php @@ -689,7 +689,9 @@ class Template } foreach ($bowerJsFiles as $file) { - $js_file_to_string .= ''."\n"; + if (!empty($file)) { + $js_file_to_string .= ''."\n"; + } } foreach ($js_files as $file) { diff --git a/main/template/default/layout/header.js.tpl b/main/template/default/layout/header.js.tpl index cd31fab3cf..6b3ab4546c 100644 --- a/main/template/default/layout/header.js.tpl +++ b/main/template/default/layout/header.js.tpl @@ -1,74 +1,75 @@