Index: trunk/extensions/FlaggedRevs/FlaggedRevs.hooks.php |
— | — | @@ -644,11 +644,11 @@ |
645 | 645 | * Check page move and patrol permissions for FlaggedRevs |
646 | 646 | */ |
647 | 647 | public static function onUserCan( $title, $user, $action, &$result ) { |
648 | | - if( $result === false || !$title->exists() ) |
| 648 | + if( $result === false ) |
649 | 649 | return true; // nothing to do |
650 | 650 | # Don't let users vandalize pages by moving them... |
651 | 651 | if( $action === 'move' ) { |
652 | | - if( !FlaggedRevs::isPageReviewable($title) ) |
| 652 | + if( !FlaggedRevs::isPageReviewable($title) || !$title->exists() ) |
653 | 653 | return true; |
654 | 654 | $flaggedArticle = FlaggedArticle::getTitleInstance( $title ); |
655 | 655 | # If the current shows be default anyway, nothing to do... |