Make a method static per the comment, update the only non static usage (in Parser) itself

This commit is contained in:
Sam Reed 2011-05-01 23:59:41 +00:00
parent 018a22d827
commit e8e63594de

View 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;