From: Roan Kattouw Date: Fri, 18 Jan 2008 14:27:15 +0000 (+0000) Subject: Fixing parser bug that broke API rollback: use $this->mTitle instead of $wgTitle... X-Git-Tag: 1.31.0-rc.0~49932 X-Git-Url: http://git.cyclocoop.org/%40spipnet%40?a=commitdiff_plain;h=badb8cf10c1e0b9daffecb93dd6003d7dc71120a;p=lhc%2Fweb%2Fwiklou.git Fixing parser bug that broke API rollback: use $this->mTitle instead of $wgTitle (the latter is NULL in API calls). --- diff --git a/includes/Parser_OldPP.php b/includes/Parser_OldPP.php index 24711e99d4..f47dc00f4f 100644 --- a/includes/Parser_OldPP.php +++ b/includes/Parser_OldPP.php @@ -3831,7 +3831,7 @@ class Parser_OldPP */ function getUserSig( &$user ) { global $wgMaxSigChars; - + $username = $user->getName(); $nickname = $user->getOption( 'nickname' ); $nickname = $nickname === '' ? $username : $nickname; @@ -3886,7 +3886,7 @@ class Parser_OldPP */ function cleanSig( $text, $parsing = false ) { global $wgTitle; - $this->startExternalParse( $wgTitle, new ParserOptions(), $parsing ? OT_WIKI : OT_MSG ); + $this->startExternalParse( $this->mTitle, new ParserOptions(), $parsing ? OT_WIKI : OT_MSG ); $substWord = MagicWord::get( 'subst' ); $substRegex = '/\{\{(?!(?:' . $substWord->getBaseRegex() . '))/x' . $substWord->getRegexCase();