From e8e63594de9732bd9ae9766d91b8bd1aae5decd7 Mon Sep 17 00:00:00 2001 From: Sam Reed Date: Sun, 1 May 2011 23:59:41 +0000 Subject: [PATCH] Make a method static per the comment, update the only non static usage (in Parser) itself --- includes/parser/Parser.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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; -- 2.20.1