From 76c22af8072cae206ff9188a483d4d4e52349373 Mon Sep 17 00:00:00 2001 From: rurban Date: Sun, 11 Dec 2005 11:13:06 +0000 Subject: [PATCH] fix wrong ref funcall: warns at php-4.4 git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@4997 96ab9672-09ca-45d6-a79d-3d69d39ca109 --- lib/CachedMarkup.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/CachedMarkup.php b/lib/CachedMarkup.php index fa51aa6aa..d51ccf120 100644 --- a/lib/CachedMarkup.php +++ b/lib/CachedMarkup.php @@ -1,5 +1,5 @@ * Copyright (C) 2004, 2005 $ThePhpWikiProgrammingTeam * @@ -578,7 +578,7 @@ class Cached_PluginInvocation extends Cached_DynamicContent { } function expand($basepage, &$markup) { - $loader = &$this->_getLoader(); + $loader = $this->_getLoader(); $xml = $loader->expandPI($this->_pi, $GLOBALS['request'], $markup, $basepage); $div = HTML::div(array('class' => 'plugin')); @@ -613,7 +613,7 @@ class Cached_PluginInvocation extends Cached_DynamicContent { return $loader->getWikiPageLinks($this->_pi, $basepage); } - function _getLoader() { + function & _getLoader() { static $loader = false; if (!$loader) { -- 2.45.0