]> git.wh0rd.org Git - tt-rss.git/commitdiff
use require_once for minifier
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Wed, 31 Jul 2013 11:05:05 +0000 (15:05 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Wed, 31 Jul 2013 11:05:05 +0000 (15:05 +0400)
index.php
prefs.php

index 526ebe772bfaa62c845751b6148cffb354c3297e..d0369e808fa73e4b9719bbab7d6dafd949c35d22 100644 (file)
--- a/index.php
+++ b/index.php
@@ -98,7 +98,7 @@
        <script type="text/javascript">
                require({cache:{}});
        <?php
-               require 'lib/jshrink/Minifier.php';
+               require_once 'lib/jshrink/Minifier.php';
 
                print get_minified_js(array("tt-rss",
                        "functions", "feedlist", "viewfeed", "FeedTree", "PluginHost"));
index fcf21cf2e8a71169f2ae345d708716ee8be7a458..6c203bd2ae693a79768ea0170159f67af26aaff2 100644 (file)
--- a/prefs.php
+++ b/prefs.php
@@ -64,7 +64,7 @@
        <script type="text/javascript">
                require({cache:{}});
        <?php
-               require 'lib/jshrink/Minifier.php';
+               require_once 'lib/jshrink/Minifier.php';
 
                foreach (PluginHost::getInstance()->get_plugins() as $n => $p) {
                        if (method_exists($p, "get_prefs_js")) {