use require_once for minifier

This commit is contained in:
Andrew Dolgov 2013-07-31 15:05:05 +04:00
parent 87721123b7
commit 3684074387
2 changed files with 2 additions and 2 deletions

View File

@ -98,7 +98,7 @@
<script type="text/javascript"> <script type="text/javascript">
require({cache:{}}); require({cache:{}});
<?php <?php
require 'lib/jshrink/Minifier.php'; require_once 'lib/jshrink/Minifier.php';
print get_minified_js(array("tt-rss", print get_minified_js(array("tt-rss",
"functions", "feedlist", "viewfeed", "FeedTree", "PluginHost")); "functions", "feedlist", "viewfeed", "FeedTree", "PluginHost"));

View File

@ -64,7 +64,7 @@
<script type="text/javascript"> <script type="text/javascript">
require({cache:{}}); require({cache:{}});
<?php <?php
require 'lib/jshrink/Minifier.php'; require_once 'lib/jshrink/Minifier.php';
foreach (PluginHost::getInstance()->get_plugins() as $n => $p) { foreach (PluginHost::getInstance()->get_plugins() as $n => $p) {
if (method_exists($p, "get_prefs_js")) { if (method_exists($p, "get_prefs_js")) {