same title as the current page, and enabled per default
* Wrap site CSS and JavaScript in a <pre> tag, like user JS/CSS
* (bug 10196) Add classes and dir="ltr" to the <pre>s on CSS and JS pages (new
- classes: mw-user-css, mw-user-js, mw-site-css, mw-site-js)
+ classes: mw-code, mw-css, mw-js)
* (bug 6711) Add $wgAddGroups and $wgRemoveGroups to allow finer control over
usergroup assignment.
or ($ns == NS_MEDIAWIKI and preg_match('/.(css|js)$/', $this->mTitle->getDBkey(), $matches))
) {
$wgOut->addWikiText( wfMsg('clearyourcache'));
- $classbit = $ns == NS_USER ? 'user' : 'site';
$wgOut->addHTML(
- "<pre class=\"mw-$classbit-{$matches[1]}\" dir=\"ltr\">"
+ "<pre class=\"mw-code mw-{$matches[1]}\" dir=\"ltr\">"
.htmlspecialchars($this->mContent)."\n</pre>"
);
} else if ( $rt = Title::newFromRedirect( $text ) ) {