$formatted .= '<br />' . $this->msg(
'ipb-blocklist-duration-left',
$language->formatDuration(
- $timestamp->getTimestamp() - time(),
+ $timestamp->getTimestamp() - MWTimestamp::time(),
// reasonable output
[
'minutes',
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 ) {
switch ( $restriction->getType() ) {
case PageRestriction::TYPE:
if ( $restriction->getTitle() ) {
- $items[$restriction->getType()][] = HTML::rawElement(
+ $items[$restriction->getType()][] = Html::rawElement(
'li',
[],
Linker::link( $restriction->getTitle() )
: $this->getLanguage()->getFormattedNsText(
$restriction->getValue()
);
- $items[$restriction->getType()][] = HTML::rawElement(
+ $items[$restriction->getType()][] = Html::rawElement(
'li',
[],
Linker::link(