[icinga-checkins] icinga.org: icingaweb2/bugfix/javascript-vendor-newlines-12328: JavaScript : Add explicit newline to separate vendor code

git at icinga.org git at icinga.org
Mon Aug 8 13:48:12 CEST 2016


Module: icingaweb2
Branch: bugfix/javascript-vendor-newlines-12328
Commit: e4ef1917d3328cda45d2e89f9dae3ee5d3472201
URL:    https://git.icinga.org/?p=icingaweb2.git;a=commit;h=e4ef1917d3328cda45d2e89f9dae3ee5d3472201

Author: Markus Frosch <lazyfrosch at icinga.org>
Date:   Mon Aug  8 13:47:02 2016 +0200

JavaScript: Add explicit newline to separate vendor code

refs #12328

---

 library/Icinga/Web/JavaScript.php |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/library/Icinga/Web/JavaScript.php b/library/Icinga/Web/JavaScript.php
index e6278c7..d9241ff 100644
--- a/library/Icinga/Web/JavaScript.php
+++ b/library/Icinga/Web/JavaScript.php
@@ -117,7 +117,7 @@ class JavaScript
 
         // We do not minify vendor files
         foreach ($vendorFiles as $file) {
-            $out .= file_get_contents($file);
+            $out .= file_get_contents($file) . "\n\n\n";
         }
 
         foreach ($jsFiles as $file) {



More information about the icinga-checkins mailing list