Index: trunk/extensions/CommunityVoice/Modules/Ratings.php |
— | — | @@ -140,7 +140,7 @@ |
141 | 141 | $args, |
142 | 142 | $parser |
143 | 143 | ) { |
144 | | - global $wgUser, $wgTitle, $wgLang; |
| 144 | + global $wgUser, $wgLang; |
145 | 145 | global $egCommunityVoiceResourcesPath; |
146 | 146 | // Disable caching |
147 | 147 | $parser->disableCache(); |
— | — | @@ -194,6 +194,9 @@ |
195 | 195 | // Adds content of tag as parsed wiki-text |
196 | 196 | $htmlOut .= $parser->recursiveTagParse( $input ); |
197 | 197 | } |
| 198 | + |
| 199 | + $title = $parser->getTitle(); |
| 200 | + |
198 | 201 | // Checks if... |
199 | 202 | if ( |
200 | 203 | // User has not voted yet |
— | — | @@ -232,7 +235,7 @@ |
233 | 236 | ) |
234 | 237 | ) |
235 | 238 | ), |
236 | | - CsJs::toScalar( $wgTitle->getPrefixedText() ) |
| 239 | + CsJs::toScalar( $title->getPrefixedText() ) |
237 | 240 | ) |
238 | 241 | ) |
239 | 242 | ) |
— | — | @@ -256,7 +259,7 @@ |
257 | 260 | 'token' => $wgUser->editToken(), |
258 | 261 | 'module' => 'Ratings', |
259 | 262 | 'action' => 'ScaleVoteSubmission', |
260 | | - 'scale[article]' => $wgTitle->getPrefixedText(), |
| 263 | + 'scale[article]' => $title->getPrefixedText(), |
261 | 264 | 'scale[category]' => $args['category'], |
262 | 265 | 'scale[title]' => $args['title'], |
263 | 266 | ); |