r77994 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r77993‎ | r77994 | r77995 >
Date:17:25, 7 December 2010
Author:raymond
Status:ok (Comments)
Tags:
Comment:
follow-up r77981: Fix class: mw-js -> mw-css for the CSS section
Add comments with the full message keys to make sure grep will find them
Modified paths:
  • /trunk/phase3/includes/EditPage.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/EditPage.php
@@ -1886,9 +1886,11 @@
18871887 $level = 'global';
18881888 }
18891889
 1890+ # Used messages to make sure grep find them:
 1891+ # usercsspreview, userjspreview, globalcsspreview, globaljspreview
18901892 if (preg_match( "/\\.css$/", $this->mTitle->getText() ) ) {
18911893 $previewtext = "<div id='mw-{$level}csspreview'>\n" . wfMsg( "{$level}csspreview" ) . "\n</div>";
1892 - $class = "mw-code mw-js";
 1894+ $class = "mw-code mw-css";
18931895 } elseif (preg_match( "/\\.js$/", $this->mTitle->getText() ) ) {
18941896 $previewtext = "<div id='mw-{$level}jspreview'>\n" . wfMsg( "{$level}jspreview" ) . "\n</div>";
18951897 $class = "mw-code mw-js";

Follow-up revisions

RevisionCommit summaryAuthorDate
r784371.17: Merge tagged revisions from trunk: r77878, r77981, r77982, r77994, r780...catrope14:14, 15 December 2010

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r77981Show the source on preview for CSS and Javascript pages....platonides14:53, 7 December 2010

Comments

#Comment by Platonides (talk | contribs)   00:04, 8 December 2010

Thanks.

Status & tagging log