summaryrefslogtreecommitdiff
path: root/inc/cache.php
diff options
context:
space:
mode:
authorChristopher Smith <chris@jalakai.co.uk>2015-05-28 17:11:42 +0100
committerChristopher Smith <chris@jalakai.co.uk>2015-05-28 17:11:42 +0100
commit4b8290f563ad5ac84dd92fb8ca97ba5970c472b3 (patch)
tree7dca7c98013775628c2b4d1596e0be41d8d4bda2 /inc/cache.php
parent9a734b7aaba1445e06c1ccb95e59f54e01688d45 (diff)
parent4286c64e98499b93056c09498c10709f8909befd (diff)
downloadrpg-4b8290f563ad5ac84dd92fb8ca97ba5970c472b3.tar.gz
rpg-4b8290f563ad5ac84dd92fb8ca97ba5970c472b3.tar.bz2
Merge branch 'master' into ioreplaceinfile
Diffstat (limited to 'inc/cache.php')
-rw-r--r--inc/cache.php10
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');
}
/**