X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;ds=sidebyside;f=includes%2Fspecials%2Fpagers%2FBlockListPager.php;h=71cf78750480d099c140abc4be895d407134e9f3;hb=a38af7ba26579bb3004f673e44d39710887763aa;hp=2fc946efe098ae4f872fabe8e111b5a3906daab0;hpb=747bdd543d301e0816aa811806c6cc6b17ec1038;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/specials/pagers/BlockListPager.php b/includes/specials/pagers/BlockListPager.php index 2fc946efe0..71cf787504 100644 --- a/includes/specials/pagers/BlockListPager.php +++ b/includes/specials/pagers/BlockListPager.php @@ -161,7 +161,7 @@ class BlockListPager extends TablePager { $formatted .= '
' . $this->msg( 'ipb-blocklist-duration-left', $language->formatDuration( - $timestamp->getTimestamp() - time(), + $timestamp->getTimestamp() - MWTimestamp::time(), // reasonable output [ 'minutes', @@ -191,10 +191,8 @@ class BlockListPager extends TablePager { case 'ipb_params': $properties = []; - if ( $this->getConfig()->get( 'EnablePartialBlocks' ) ) { - if ( $row->ipb_sitewide ) { - $properties[] = htmlspecialchars( $msg['blocklist-editing-sitewide'] ); - } + if ( $this->getConfig()->get( 'EnablePartialBlocks' ) && $row->ipb_sitewide ) { + $properties[] = htmlspecialchars( $msg['blocklist-editing-sitewide'] ); } if ( !$row->ipb_sitewide && $this->restrictions ) { @@ -261,7 +259,7 @@ class BlockListPager extends TablePager { switch ( $restriction->getType() ) { case PageRestriction::TYPE: if ( $restriction->getTitle() ) { - $items[$restriction->getType()][] = HTML::rawElement( + $items[$restriction->getType()][] = Html::rawElement( 'li', [], Linker::link( $restriction->getTitle() ) @@ -274,7 +272,7 @@ class BlockListPager extends TablePager { : $this->getLanguage()->getFormattedNsText( $restriction->getValue() ); - $items[$restriction->getType()][] = HTML::rawElement( + $items[$restriction->getType()][] = Html::rawElement( 'li', [], Linker::link(