Index: trunk/extensions/ApprovedRevs/ApprovedRevs.hooks.php |
— | — | @@ -20,7 +20,7 @@ |
21 | 21 | if ( $action == 'submit' ) { |
22 | 22 | $title = $parser->getTitle(); |
23 | 23 | $approvedText = ApprovedRevs::getApprovedContent( $title ); |
24 | | - if ( ! is_null( $approvedText ) ) { |
| 24 | + if ( !is_null( $approvedText ) ) { |
25 | 25 | $text = $approvedText; |
26 | 26 | } |
27 | 27 | } |
— | — | @@ -259,7 +259,7 @@ |
260 | 260 | */ |
261 | 261 | static function setTranscludedPageRev( $parser, &$title, &$skip, &$id ) { |
262 | 262 | $revision_id = ApprovedRevs::getApprovedRevID( $title ); |
263 | | - if ( ! is_null( $revision_id ) ) { |
| 263 | + if ( !is_null( $revision_id ) ) { |
264 | 264 | $id = $revision_id; |
265 | 265 | } |
266 | 266 | return true; |
— | — | @@ -298,7 +298,6 @@ |
299 | 299 | * 'APPROVEDREVS' magic word in a page |
300 | 300 | */ |
301 | 301 | static function handleMagicWords( &$parser, &$text ) { |
302 | | - global $wgOut, $wgAction; |
303 | 302 | $mw_hide = MagicWord::get( 'MAG_APPROVEDREVS' ); |
304 | 303 | if ( $mw_hide->matchAndRemove( $text ) ) { |
305 | 304 | $parser->mOutput->setProperty( 'approvedrevs', 'y' ); |