summaryrefslogtreecommitdiff
path: root/inc/pageutils.php
diff options
context:
space:
mode:
authorBen Coburn <btcoburn@silicodon.net>2006-08-28 09:12:05 +0200
committerBen Coburn <btcoburn@silicodon.net>2006-08-28 09:12:05 +0200
commit50602150cdefc713863f182b761885259f3734b7 (patch)
treea6d2ee2dba4440df2740480a28203a9919a87387 /inc/pageutils.php
parentbb4e0b0b87ce6a0701a60ced1d2950bf1cbed861 (diff)
downloadrpg-50602150cdefc713863f182b761885259f3734b7.tar.gz
rpg-50602150cdefc713863f182b761885259f3734b7.tar.bz2
init global memory cache arrays
Update to 'add function result caching for cleanID and wikiFN'. Makes certain that arrays exist for the caches, without checking on each function call. Properly create multidimensional arrays in wikiFN(). darcs-hash:20060828071205-05dcb-7c8dbdb5ea4e7b73808ec3bd9222df1b837d3a1f.gz
Diffstat (limited to 'inc/pageutils.php')
-rw-r--r--inc/pageutils.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/inc/pageutils.php b/inc/pageutils.php
index 882a6bf56..758d34a9e 100644
--- a/inc/pageutils.php
+++ b/inc/pageutils.php
@@ -188,6 +188,7 @@ function wikiFN($raw_id,$rev='',$clean=true){
}
}
+ if (!isset($cache[$raw_id])) { $cache[$raw_id] = array(); }
$cache[$raw_id][$rev] = $fn;
return $fn;
}