public $username;
public $userpageUrlDetails;
- /**
- * Add specific styles for this skin
- *
- * @param OutputPage $out
- */
- public function setupSkinUserCss( OutputPage $out ) {
- $moduleStyles = [
- 'mediawiki.legacy.shared',
- 'mediawiki.legacy.commonPrint',
- 'mediawiki.sectionAnchor'
- ];
- if ( $out->isSyndicated() ) {
- $moduleStyles[] = 'mediawiki.feedlink';
- }
-
- // Deprecated since 1.26: Unconditional loading of mediawiki.ui.button
- // on every page is deprecated. Express a dependency instead.
- if ( strpos( $out->getHTML(), 'mw-ui-button' ) !== false ) {
- $moduleStyles[] = 'mediawiki.ui.button';
- }
-
- $out->addModuleStyles( $moduleStyles );
- }
-
/**
* Create the template engine object; we feed it a bunch of data
* and eventually it spits out some HTML. Should have interface
$tpl->set( 'debug', '' );
$tpl->set( 'debughtml', $this->generateDebugHTML() );
- $tpl->set( 'reporttime', wfReportTime() );
+ $tpl->set( 'reporttime', wfReportTime( $out->getCSPNonce() ) );
// Avoid PHP 7.1 warning of passing $this by reference
$skinTemplate = $this;