summaryrefslogtreecommitdiff
path: root/inc/indexer.php
diff options
context:
space:
mode:
authorMichael Hamann <michael@content-space.de>2012-12-20 17:47:39 +0100
committerMichael Hamann <michael@content-space.de>2012-12-20 17:47:39 +0100
commit4f7083212993bf72f0b8969e6d57f587faaa5dfc (patch)
treeb5542aba2a59a24319cbaeea3854506b4f50ed7f /inc/indexer.php
parent3cf3c7d60c81d562c8331a377a76e86d41f8f528 (diff)
downloadrpg-4f7083212993bf72f0b8969e6d57f587faaa5dfc.tar.gz
rpg-4f7083212993bf72f0b8969e6d57f587faaa5dfc.tar.bz2
Remove global $Indexer, clear index in the testing system instead
Diffstat (limited to 'inc/indexer.php')
-rw-r--r--inc/indexer.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/inc/indexer.php b/inc/indexer.php
index b9eaf31d9..7a62345bf 100644
--- a/inc/indexer.php
+++ b/inc/indexer.php
@@ -1228,7 +1228,7 @@ class Doku_Indexer {
* @author Tom N Harris <tnharris@whoopdedo.org>
*/
function idx_get_indexer() {
- global $Indexer;
+ static $Indexer;
if (!isset($Indexer)) {
$Indexer = new Doku_Indexer();
}