Make a method static per the comment, update the only non static usage (in Parser...
authorSam Reed <reedy@users.mediawiki.org>
Sun, 1 May 2011 23:59:41 +0000 (23:59 +0000)
committerSam Reed <reedy@users.mediawiki.org>
Sun, 1 May 2011 23:59:41 +0000 (23:59 +0000)
includes/parser/Parser.php

index a636145..7204e0e 100644 (file)
@@ -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;