SpecialWantedcategories: Actually strike the category if it was emptied
[lhc/web/wiklou.git] / includes / specials / SpecialProtectedtitles.php
index 540d0d0..c3ebd80 100644 (file)
@@ -101,8 +101,7 @@ class SpecialProtectedtitles extends SpecialPage {
 
                $link = Linker::link( $title );
                $description_items = array();
-               // Give grep a chance to find the usages:
-               // restriction-level-sysop, restriction-level-autoconfirmed
+               // Messages: restriction-level-sysop, restriction-level-autoconfirmed
                $protType = $this->msg( 'restriction-level-' . $row->pt_create_perm )->escaped();
                $description_items[] = $protType;
                $lang = $this->getLanguage();
@@ -136,7 +135,7 @@ class SpecialProtectedtitles extends SpecialPage {
        function showOptions( $namespace, $type = 'edit', $level ) {
                global $wgScript;
                $action = htmlspecialchars( $wgScript );
-               $title = $this->getTitle();
+               $title = $this->getPageTitle();
                $special = htmlspecialchars( $title->getPrefixedDBkey() );
 
                return "<form action=\"$action\" method=\"get\">\n" .
@@ -185,8 +184,7 @@ class SpecialProtectedtitles extends SpecialPage {
                // First pass to load the log names
                foreach ( $wgRestrictionLevels as $type ) {
                        if ( $type != '' && $type != '*' ) {
-                               // Give grep a chance to find the usages:
-                               // restriction-level-sysop, restriction-level-autoconfirmed
+                               // Messages: restriction-level-sysop, restriction-level-autoconfirmed
                                $text = $this->msg( "restriction-level-$type" )->text();
                                $m[$text] = $type;
                        }