* @return string Formatted <li> element
*/
public function formatRow( $row ) {
- global $wgUser, $wgLang, $wgContLang;
+ global $wgUser, $wgLang;
wfProfileIn( __METHOD__ );
static $skin = null, $infinity = null;
if( is_null( $skin ) ){
- $skin = $wgUser->getSkin();
+ $skin = $this->getSkin();
$infinity = wfGetDB( DB_SLAVE )->getInfinity();
}
if( $expiry != $infinity ) {
$expiry_description = wfMsg(
- 'protect-expiring',
- $wgLang->timeanddate( $expiry ),
- $wgLang->date( $expiry ),
- $wgLang->time( $expiry )
+ 'protect-expiring-local',
+ $wgLang->timeanddate( $expiry, true ),
+ $wgLang->date( $expiry, true ),
+ $wgLang->time( $expiry, true )
);
$description_items[] = htmlspecialchars($expiry_description);
}
if(!is_null($size = $row->page_len)) {
- $stxt = $wgContLang->getDirMark() . ' ' . $skin->formatRevisionSize( $size );
+ $stxt = $wgLang->getDirMark() . ' ' . $skin->formatRevisionSize( $size );
}
# Show a link to the change protection form for allowed users otherwise a link to the protection log
return Html::rawElement(
'li',
array(),
- wfSpecialList( $link . $stxt, $wgLang->commaList( $description_items ) ) . $changeProtection ) . "\n";
+ wfSpecialList( $link . $stxt, $wgLang->commaList( $description_items ), false ) . $changeProtection ) . "\n";
}
/**
return '';
}
+ function getTitle() {
+ return SpecialPage::getTitleFor( 'Protectedpages' );
+ }
+
function formatRow( $row ) {
return $this->mForm->formatRow( $row );
}
if( $this->sizetype=='min' ) {
$conds[] = 'page_len>=' . $this->size;
- } else if( $this->sizetype=='max' ) {
+ } elseif( $this->sizetype=='max' ) {
$conds[] = 'page_len<=' . $this->size;
}