From: Aryeh Gregor Date: Tue, 26 Jun 2007 17:07:23 +0000 (+0000) Subject: Change classes for
s per Brion on Wikitech-l
X-Git-Tag: 1.31.0-rc.0~52388
X-Git-Url: https://git.cyclocoop.org/%7B%24admin_url%7Dmembres/fiche.php?a=commitdiff_plain;h=c9c39fd170779651bcd287c2630801fe9a8700f3;p=lhc%2Fweb%2Fwiklou.git

Change classes for 
s per Brion on Wikitech-l
---

diff --git a/RELEASE-NOTES b/RELEASE-NOTES
index 3a64870691..c88f6b1342 100644
--- a/RELEASE-NOTES
+++ b/RELEASE-NOTES
@@ -106,7 +106,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN
   same title as the current page, and enabled per default
 * Wrap site CSS and JavaScript in a 
 tag, like user JS/CSS
 * (bug 10196) Add classes and dir="ltr" to the 
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.
 
diff --git a/includes/Article.php b/includes/Article.php
index b4aa97f371..5c325c5234 100644
--- a/includes/Article.php
+++ b/includes/Article.php
@@ -787,9 +787,8 @@ class Article {
 				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(
-					"
"
+					"
"
 					.htmlspecialchars($this->mContent)."\n
" ); } else if ( $rt = Title::newFromRedirect( $text ) ) {