diff options
author | Andreas Gohr <andi@splitbrain.org> | 2015-05-16 11:54:32 +0200 |
---|---|---|
committer | Andreas Gohr <andi@splitbrain.org> | 2015-05-16 11:54:32 +0200 |
commit | dd0d7a4198ffaf4061d322de53ecd9a34eac3500 (patch) | |
tree | 9883d43081d67b8886c7076effa313cfec9ff7c0 /inc/cache.php | |
parent | bff1a21bd9a53ef56d9603457bbb3b6178564791 (diff) | |
parent | 79eec18f7ad9126ba147cd13eb2a8d6ee41bf140 (diff) | |
download | rpg-dd0d7a4198ffaf4061d322de53ecd9a34eac3500.tar.gz rpg-dd0d7a4198ffaf4061d322de53ecd9a34eac3500.tar.bz2 |
Merge pull request #1154 from splitbrain/php7compatibility
Php7compatibility
Diffstat (limited to 'inc/cache.php')
-rw-r--r-- | inc/cache.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/inc/cache.php b/inc/cache.php index 68f64eaa2..9375dc86b 100644 --- a/inc/cache.php +++ b/inc/cache.php @@ -26,7 +26,7 @@ class cache { * @param string $key primary identifier * @param string $ext file extension */ - public function cache($key,$ext) { + public function __construct($key,$ext) { $this->key = $key; $this->ext = $ext; $this->cache = getCacheName($key,$ext); @@ -188,12 +188,12 @@ class cache_parser extends cache { * @param string $file source file for cache * @param string $mode input mode */ - public function cache_parser($id, $file, $mode) { + public function __construct($id, $file, $mode) { if ($id) $this->page = $id; $this->file = $file; $this->mode = $mode; - parent::cache($file.$_SERVER['HTTP_HOST'].$_SERVER['SERVER_PORT'],'.'.$mode); + parent::__construct($file.$_SERVER['HTTP_HOST'].$_SERVER['SERVER_PORT'],'.'.$mode); } /** @@ -308,8 +308,8 @@ class cache_instructions extends cache_parser { * @param string $id page id * @param string $file source file for cache */ - public function cache_instructions($id, $file) { - parent::cache_parser($id, $file, 'i'); + public function __construct($id, $file) { + parent::__construct($id, $file, 'i'); } /** |