Also set the queue types map when rebuilding the ready queue map
[lhc/web/wiklou.git] / includes / specials / SpecialProtectedpages.php
index e505ecb..7554e37 100644 (file)
@@ -27,7 +27,6 @@
  * @ingroup SpecialPage
  */
 class SpecialProtectedpages extends SpecialPage {
-
        protected $IdLevel = 'level';
        protected $IdType = 'type';
 
@@ -99,7 +98,7 @@ class SpecialProtectedpages extends SpecialPage {
         * @param bool $indefOnly Only indefinite protection
         * @param bool $cascadeOnly Only cascading protection
         * @param bool $noRedirect Don't show redirects
-        * @return String: input form
+        * @return string Input form
         */
        protected function showOptions( $namespace, $type = 'edit', $level, $sizetype,
                $size, $indefOnly, $cascadeOnly, $noRedirect
@@ -131,8 +130,8 @@ class SpecialProtectedpages extends SpecialPage {
         * Prepare the namespace filter drop-down; standard namespace
         * selector, sans the MediaWiki namespace
         *
-        * @param $namespace Mixed: pre-select namespace
-        * @return String
+        * @param string|null $namespace Pre-select namespace
+        * @return string
         */
        protected function getNamespaceMenu( $namespace = null ) {
                return Html::rawElement( 'span', array( 'style' => 'white-space: nowrap;' ),
@@ -220,7 +219,7 @@ class SpecialProtectedpages extends SpecialPage {
 
        /**
         * Creates the input label of the restriction type
-        * @param $pr_type string Protection type
+        * @param string $pr_type Protection type
         * @return string Formatted HTML
         */
        protected function getTypeMenu( $pr_type ) {
@@ -249,7 +248,7 @@ class SpecialProtectedpages extends SpecialPage {
 
        /**
         * Creates the input label of the restriction level
-        * @param $pr_level string Protection level
+        * @param string $pr_level Protection level
         * @return string Formatted HTML
         */
        protected function getLevelMenu( $pr_level ) {
@@ -438,7 +437,11 @@ class ProtectedPagesPager extends TablePager {
                                        );
                                } else {
                                        $username = UserCache::singleton()->getProp( $value, 'name' );
-                                       if ( LogEventsList::userCanBitfield( $row->log_deleted, LogPage::DELETED_USER, $this->getUser() ) ) {
+                                       if ( LogEventsList::userCanBitfield(
+                                               $row->log_deleted,
+                                               LogPage::DELETED_USER,
+                                               $this->getUser()
+                                       ) ) {
                                                if ( $username === false ) {
                                                        $formatted = htmlspecialchars( $value );
                                                } else {
@@ -465,7 +468,7 @@ class ProtectedPagesPager extends TablePager {
                                break;
 
                        case 'log_comment':
-                               // when timestamp is null, this is a old protection row
+                               // when timestamp is null, this is an old protection row
                                if ( $row->log_timestamp === null ) {
                                        $formatted = Html::rawElement(
                                                'span',
@@ -473,7 +476,11 @@ class ProtectedPagesPager extends TablePager {
                                                $this->msg( 'protectedpages-unknown-reason' )->escaped()
                                        );
                                } else {
-                                       if ( LogEventsList::userCanBitfield( $row->log_deleted, LogPage::DELETED_COMMENT, $this->getUser() ) ) {
+                                       if ( LogEventsList::userCanBitfield(
+                                               $row->log_deleted,
+                                               LogPage::DELETED_COMMENT,
+                                               $this->getUser()
+                                       ) ) {
                                                $formatted = Linker::formatComment( $value !== null ? $value : '' );
                                        } else {
                                                $formatted = $this->msg( 'rev-deleted-comment' )->escaped();