Index: trunk/extensions/FlaggedRevs/FlaggedArticle.php |
— | — | @@ -904,14 +904,19 @@ |
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 | + */ |
908 | 913 | // Checks if... |
909 | 914 | if ( |
910 | | - // This page is a talk page |
| 915 | + // This page is not a talk page |
911 | 916 | !$skin->mTitle->isTalkPage() && |
912 | 917 | // User is allowed to stablize pages |
913 | 918 | $wgUser->isAllowed( 'stablesettings' ) && |
914 | 919 | // Actions is an array |
915 | | - is_array( $actions ) && |
| 920 | + count( $actions ) && |
916 | 921 | // A protect tab does not exist |
917 | 922 | !isset( $actions['protect'] ) && |
918 | 923 | // An unprtect tab does not exist |