protected $mCanonicalUrl = false;
/**
- * @var string The contents of <h1> */
+ * @var string The contents of <h1>
+ */
private $mPageTitle = '';
/**
// This library is intended to run on older browsers that MediaWiki no longer
// supports as Grade A. For these Grade C browsers, we provide an experience
- // using only HTML and CSS. Where standards-compliant browsers are able to style
- // unknown HTML elements without issue, old IE ignores these styles.
+ // using only HTML and CSS. But, where standards-compliant browsers are able to
+ // style unknown HTML elements without issue, old IE ignores these styles.
// The html5shiv library fixes that.
// Use an IE conditional comment to serve the script only to old IE
$shivUrl = $config->get( 'ResourceBasePath' ) . '/resources/lib/html5shiv/html5shiv.js';
public function insertLog( &$s, $title, $logtype ) {
$page = new LogPage( $logtype );
$logname = $page->getName()->setContext( $this->getContext() )->text();
- $s .= $this->msg( 'parentheses' )->rawParams(
- $this->linkRenderer->makeKnownLink( $title, $logname )
- )->escaped();
+ $s .= Html::rawElement( 'span', [
+ 'class' => 'mw-changeslist-links'
+ ], $this->linkRenderer->makeKnownLink( $title, $logname ) );
}
/**
$formatter->setShowUserToolLinks( true );
$mark = $this->getLanguage()->getDirMark();
- return $formatter->getActionText() . " $mark" . $formatter->getComment();
+ return Html::openElement( 'span', [ 'class' => 'mw-changeslist-log-entry' ] )
+ . $formatter->getActionText() . " $mark" . $formatter->getComment()
+ . Html::closeElement( 'span' );
}
/**
) {
$title = $rc->getTitle();
/** Check for rollback permissions, disallow special pages, and only
- * show a link on the top-most revision */
+ * show a link on the top-most revision
+ */
if ( $title->quickUserCan( 'rollback', $this->getUser() ) ) {
$rev = new Revision( [
'title' => $title,