Index: trunk/extensions/FlaggedRevs/FlaggedArticle.php |
— | — | @@ -904,11 +904,6 @@ |
905 | 905 | // Exits, since only reviewable pages need these tabs |
906 | 906 | return true; |
907 | 907 | } |
908 | | - /* |
909 | | - * FIXME: IS THIS LOGIC CORRECT? IT DOES NOT MAKES SENSE THAT WE ONLY |
910 | | - * PROVICE A STABLIZE TAB FOR PEOPLE WHTHOUT PROTECTION RIGHTS BUT WITH |
911 | | - * AT LEAST ONE TAB AS SEEN HERE... |
912 | | - */ |
913 | 908 | // Checks if... |
914 | 909 | if ( |
915 | 910 | // This page is not a talk page |
— | — | @@ -916,10 +911,10 @@ |
917 | 912 | // User is allowed to stablize pages |
918 | 913 | $wgUser->isAllowed( 'stablesettings' ) && |
919 | 914 | // Actions is an array |
920 | | - count( $actions ) && |
| 915 | + is_array( $actions ) && |
921 | 916 | // A protect tab does not exist |
922 | 917 | !isset( $actions['protect'] ) && |
923 | | - // An unprtect tab does not exist |
| 918 | + // An unprotect tab does not exist |
924 | 919 | !isset( $actions['unprotect'] ) |
925 | 920 | ) { |
926 | 921 | // Loads messages for stabilization UI |