Merge "LogPager: Add backwards-compatibility for hide_[type]_log URL params"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Mon, 23 Jul 2018 20:55:21 +0000 (20:55 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Mon, 23 Jul 2018 20:55:21 +0000 (20:55 +0000)
1  2 
includes/logging/LogEventsList.php

@@@ -198,14 -196,9 +198,14 @@@ class LogEventsList extends ContextSour
                $options = [];
                $default = [];
                foreach ( $filter as $type => $val ) {
 -                      $options[ $this->msg( "logeventslist-{$type}-log" )->text() ] = $type;
 +                      $message = $this->msg( "logeventslist-{$type}-log" );
 +                      // FIXME: Remove this check once T199657 is fully resolved.
 +                      if ( !$message->exists() ) {
 +                              $message = $this->msg( "log-show-hide-{$type}" )->params( $this->msg( 'show' )->text() );
 +                      }
 +                      $options[ $message->text() ] = $type;
  
-                       if ( $val === 0 ) {
+                       if ( $val === false ) {
                                $default[] = $type;
                        }
                }