Browse Source

Found even more static changes

spaghetti 8 years ago
parent
commit
feb37dde92
1 changed files with 3 additions and 3 deletions
  1. 3
    3
      design/publicheader.php

+ 3
- 3
design/publicheader.php View File

@@ -12,9 +12,9 @@ define('FOOTER_FILE',SERVER_ROOT.'/design/publicfooter.php');
12 12
 <?
13 13
   $Scripts = ['jquery', 'script_start', 'ajax.class', 'cookie.class', 'storage.class', 'global'];
14 14
   foreach($Scripts as $Script) {
15
-    if (($ScriptStats = G::$Cache->get_value("script_stats_$Script")) === false || $ScriptStats['mtime'] != filemtime(STATIC_SERVER."functions/$Script.js")) {
16
-      $ScriptStats['mtime'] = filemtime(STATIC_SERVER."functions/$Script.js");
17
-      $ScriptStats['hash'] = base64_encode(hash_file(INTEGRITY_ALGO, STATIC_SERVER."functions/$Script.js", true));
15
+    if (($ScriptStats = G::$Cache->get_value("script_stats_$Script")) === false || $ScriptStats['mtime'] != filemtime(SERVER_ROOT.STATIC_SERVER."functions/$Script.js")) {
16
+      $ScriptStats['mtime'] = filemtime(SERVER_ROOT.STATIC_SERVER."functions/$Script.js");
17
+      $ScriptStats['hash'] = base64_encode(hash_file(INTEGRITY_ALGO, SERVER_ROOT.STATIC_SERVER."functions/$Script.js", true));
18 18
       $ScriptStats['algo'] = INTEGRITY_ALGO;
19 19
       G::$Cache->cache_value("script_stats_$Script", $ScriptStats);
20 20
     }

Loading…
Cancel
Save