diff options
author | chris <chris@jalakai.co.uk> | 2006-08-29 15:48:06 +0200 |
---|---|---|
committer | chris <chris@jalakai.co.uk> | 2006-08-29 15:48:06 +0200 |
commit | 19a3223378923679493484987e6719c16b5f5997 (patch) | |
tree | 30cd513952b8abc1f0dd76eb269bdcb95077d1b3 /inc/init.php | |
parent | 02a498e7884db0beaec6950e3b36bf4384daba93 (diff) | |
download | rpg-19a3223378923679493484987e6719c16b5f5997.tar.gz rpg-19a3223378923679493484987e6719c16b5f5997.tar.bz2 |
further update to global memory cache arrays
- remove initialisation of caches in inc/pageutils.php
- add global declaration to init.php to support init.php
being included from within a function, e.g. unit testing
;-)
- minor change to utf8_substr, remove non-essential brackets
added as part of an earlier patch
darcs-hash:20060829134806-9b6ab-ab15191344a83be664c412403dc84a24fa2253a2.gz
Diffstat (limited to 'inc/init.php')
-rw-r--r-- | inc/init.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/inc/init.php b/inc/init.php index 13fb3a4bb..01d2f7469 100644 --- a/inc/init.php +++ b/inc/init.php @@ -24,8 +24,8 @@ else { error_reporting(DOKU_E_LEVEL); } // init memory caches - $cache_wikifn = array(); - $cache_cleanid = array(); + global $cache_wikifn; $cache_wikifn = array(); + global $cache_wikifn; $cache_cleanid = array(); //prepare config array() global $conf; |