summaryrefslogtreecommitdiff
path: root/itjs.class
diff options
context:
space:
mode:
authorChristian Schneider2019-09-02 17:14:43 +0200
committerChristian Schneider2019-09-02 17:14:43 +0200
commit2b13737e9299317c865f72f4a276ea0b733c4f5f (patch)
treeb800cc0e889d976ba0957e168df45622aee24ee2 /itjs.class
parentb422951038a66713c18ec4d24ce71a13dd0756a6 (diff)
downloaditools-2b13737e9299317c865f72f4a276ea0b733c4f5f.tar.gz
itools-2b13737e9299317c865f72f4a276ea0b733c4f5f.tar.bz2
itools-2b13737e9299317c865f72f4a276ea0b733c4f5f.zip
Make itools a bit stricter, new PHP versions start to enforce more declarations
Diffstat (limited to 'itjs.class')
-rw-r--r--itjs.class2
1 files changed, 1 insertions, 1 deletions
diff --git a/itjs.class b/itjs.class
index 2e7cf48..c7db13a 100644
--- a/itjs.class
+++ b/itjs.class
@@ -195,7 +195,7 @@ static function checksum($fnlist, $p = array())
/**
* Convert url or TRUSTED local path to url that triggers far future expire by appending c=checksum
*/
-function crcurl($url, $p = array())
+static function crcurl($url, $p = array())
{
if (it::match('^(http|//)', $url)) # remote url, must fetch to crc
list($fn, $short_expire) = array(it_url::get_cache(array('url' => $url, 'maxage' => 3600, 'id' => "itjs_crcurl") + $p), false);