r23426 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r23425‎ | r23426 | r23427 >
Date:17:07, 26 June 2007
Author:simetrical
Status:old
Tags:
Comment:
Change classes for <pre>s per Brion on Wikitech-l
Modified paths:
  • /trunk/phase3/RELEASE-NOTES (modified) (history)
  • /trunk/phase3/includes/Article.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/Article.php
@@ -787,9 +787,8 @@
788788 or ($ns == NS_MEDIAWIKI and preg_match('/.(css|js)$/', $this->mTitle->getDBkey(), $matches))
789789 ) {
790790 $wgOut->addWikiText( wfMsg('clearyourcache'));
791 - $classbit = $ns == NS_USER ? 'user' : 'site';
792791 $wgOut->addHTML(
793 - "<pre class=\"mw-$classbit-{$matches[1]}\" dir=\"ltr\">"
 792+ "<pre class=\"mw-code mw-{$matches[1]}\" dir=\"ltr\">"
794793 .htmlspecialchars($this->mContent)."\n</pre>"
795794 );
796795 } else if ( $rt = Title::newFromRedirect( $text ) ) {
Index: trunk/phase3/RELEASE-NOTES
@@ -106,7 +106,7 @@
107107 same title as the current page, and enabled per default
108108 * Wrap site CSS and JavaScript in a <pre> tag, like user JS/CSS
109109 * (bug 10196) Add classes and dir="ltr" to the <pre>s on CSS and JS pages (new
110 - classes: mw-user-css, mw-user-js, mw-site-css, mw-site-js)
 110+ classes: mw-code, mw-css, mw-js)
111111 * (bug 6711) Add $wgAddGroups and $wgRemoveGroups to allow finer control over
112112 usergroup assignment.
113113

Follow-up revisions

RevisionCommit summaryAuthorDate
r23581Merged revisions 23406-23580 via svnmerge from...david04:50, 30 June 2007

Status & tagging log