From: Sam Reed Date: Sun, 1 May 2011 23:59:41 +0000 (+0000) Subject: Make a method static per the comment, update the only non static usage (in Parser... X-Git-Tag: 1.31.0-rc.0~30466 X-Git-Url: http://git.cyclocoop.org/%40spipnet%40?a=commitdiff_plain;h=e8e63594de9732bd9ae9766d91b8bd1aae5decd7;p=lhc%2Fweb%2Fwiklou.git Make a method static per the comment, update the only non static usage (in Parser) itself --- diff --git a/includes/parser/Parser.php b/includes/parser/Parser.php index a636145534..7204e0eddd 100644 --- a/includes/parser/Parser.php +++ b/includes/parser/Parser.php @@ -682,10 +682,8 @@ class Parser { * @param $matches Out parameter, Array: extracted tags * @param $uniq_prefix * @return String: stripped text - * - * @static */ - public function extractTagsAndParams( $elements, $text, &$matches, $uniq_prefix = '' ) { + public static function extractTagsAndParams( $elements, $text, &$matches, $uniq_prefix = '' ) { static $n = 1; $stripped = ''; $matches = array(); @@ -5117,7 +5115,7 @@ class Parser { function replaceTransparentTags( $text ) { $matches = array(); $elements = array_keys( $this->mTransparentTagHooks ); - $text = $this->extractTagsAndParams( $elements, $text, $matches, $this->mUniqPrefix ); + $text = self::extractTagsAndParams( $elements, $text, $matches, $this->mUniqPrefix ); foreach ( $matches as $marker => $data ) { list( $element, $content, $params, $tag ) = $data;