X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fspecials%2FSpecialRecentchanges.php;h=d274c88f17bb5cbb709b3b7beef96d435c21e015;hb=3c4be2f2a8f9104d539c15440a6a3e5fd5f3a85c;hp=60e797e0c3a8f9ae0e04521989a1e460da98ad04;hpb=1d5344025f02e1b2b9646c6d88083255edd87f58;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/specials/SpecialRecentchanges.php b/includes/specials/SpecialRecentchanges.php index 60e797e0c3..d274c88f17 100644 --- a/includes/specials/SpecialRecentchanges.php +++ b/includes/specials/SpecialRecentchanges.php @@ -674,7 +674,7 @@ class SpecialRecentChanges extends ChangesListSpecialPage { * Creates the choose namespace selection * * @param FormOptions $opts - * @return string + * @return string[] */ protected function namespaceFilterForm( FormOptions $opts ) { $nsSelect = Html::namespaceSelector( @@ -709,7 +709,7 @@ class SpecialRecentChanges extends ChangesListSpecialPage { $categories = array_map( 'trim', explode( '|', $opts['categories'] ) ); - if ( !count( $categories ) ) { + if ( $categories === [] ) { return; } @@ -744,7 +744,7 @@ class SpecialRecentChanges extends ChangesListSpecialPage { } # Shortcut? - if ( !count( $articles ) || !count( $cats ) ) { + if ( $articles === [] || $cats === [] ) { return; } @@ -912,7 +912,7 @@ class SpecialRecentChanges extends ChangesListSpecialPage { 'span', [ 'class' => 'rclistfrom' ], $this->makeOptionsLink( - $this->msg( 'rclistfrom' )->rawParams( $now, $timenow, $datenow )->parse(), + $this->msg( 'rclistfrom' )->plaintextParams( $now, $timenow, $datenow )->parse(), [ 'from' => $timestamp ], $nondefaults )