Index: trunk/extensions/FlaggedRevs/FlaggedRevs.class.php |
— | — | @@ -878,11 +878,11 @@ |
879 | 879 | global $wgFlaggedRevsNamespaces, $wgFlaggedRevsWhitelist; |
880 | 880 | # FIXME: Treat NS_MEDIA as NS_IMAGE |
881 | 881 | $ns = ( $title->getNamespace() == NS_MEDIA ) ? NS_IMAGE : $title->getNamespace(); |
882 | | - # Check whitelist for exempt pages |
883 | | - if( in_array( $title->getPrefixedDBKey(), $wgFlaggedRevsWhitelist ) ) { |
| 882 | + # Check for MW: pages and whitelist for exempt pages |
| 883 | + if( $ns == NS_MEDIAWIKI || in_array( $title->getPrefixedDBKey(), $wgFlaggedRevsWhitelist ) ) { |
884 | 884 | return false; |
885 | 885 | } |
886 | | - return ( in_array($ns,$wgFlaggedRevsNamespaces) && !$title->isTalkPage() && $ns != NS_MEDIAWIKI ); |
| 886 | + return ( in_array($ns,$wgFlaggedRevsNamespaces) && !$title->isTalkPage() ); |
887 | 887 | } |
888 | 888 | |
889 | 889 | /** |
— | — | @@ -894,11 +894,11 @@ |
895 | 895 | global $wgFeedbackNamespaces, $wgFlaggedRevsWhitelist; |
896 | 896 | # FIXME: Treat NS_MEDIA as NS_IMAGE |
897 | 897 | $ns = ( $title->getNamespace() == NS_MEDIA ) ? NS_IMAGE : $title->getNamespace(); |
898 | | - # Check whitelist for exempt pages |
899 | | - if( in_array( $title->getPrefixedDBKey(), $wgFlaggedRevsWhitelist ) ) { |
| 898 | + # Check for MW: pages and whitelist for exempt pages |
| 899 | + if( $ns == NS_MEDIAWIKI || in_array( $title->getPrefixedDBKey(), $wgFlaggedRevsWhitelist ) ) { |
900 | 900 | return false; |
901 | 901 | } |
902 | | - return ( in_array($ns,$wgFeedbackNamespaces) && !$title->isTalkPage() && $ns != NS_MEDIAWIKI ); |
| 902 | + return ( in_array($ns,$wgFeedbackNamespaces) && !$title->isTalkPage() ); |
903 | 903 | } |
904 | 904 | |
905 | 905 | /** |