follow-up r77981: Fix class: mw-js -> mw-css for the CSS section
authorRaimond Spekking <raymond@users.mediawiki.org>
Tue, 7 Dec 2010 17:25:49 +0000 (17:25 +0000)
committerRaimond Spekking <raymond@users.mediawiki.org>
Tue, 7 Dec 2010 17:25:49 +0000 (17:25 +0000)
Add comments with the full message keys to make sure grep will find them

includes/EditPage.php

index e4d9321..277a915 100644 (file)
@@ -1886,9 +1886,11 @@ HTML
                                $level = 'global';
                        }
 
+                       # Used messages to make sure grep find them:
+                       # usercsspreview, userjspreview, globalcsspreview, globaljspreview
                        if (preg_match( "/\\.css$/", $this->mTitle->getText() ) ) {
                                $previewtext = "<div id='mw-{$level}csspreview'>\n" . wfMsg( "{$level}csspreview" ) . "\n</div>";
-                               $class = "mw-code mw-js";
+                               $class = "mw-code mw-css";
                        } elseif (preg_match( "/\\.js$/", $this->mTitle->getText() ) ) {
                                $previewtext = "<div id='mw-{$level}jspreview'>\n" . wfMsg( "{$level}jspreview" ) . "\n</div>";
                                $class = "mw-code mw-js";