Index: trunk/phase3/includes/EditPage.php |
— | — | @@ -1886,9 +1886,11 @@ |
1887 | 1887 | $level = 'global'; |
1888 | 1888 | } |
1889 | 1889 | |
| 1890 | + # Used messages to make sure grep find them: |
| 1891 | + # usercsspreview, userjspreview, globalcsspreview, globaljspreview |
1890 | 1892 | if (preg_match( "/\\.css$/", $this->mTitle->getText() ) ) { |
1891 | 1893 | $previewtext = "<div id='mw-{$level}csspreview'>\n" . wfMsg( "{$level}csspreview" ) . "\n</div>"; |
1892 | | - $class = "mw-code mw-js"; |
| 1894 | + $class = "mw-code mw-css"; |
1893 | 1895 | } elseif (preg_match( "/\\.js$/", $this->mTitle->getText() ) ) { |
1894 | 1896 | $previewtext = "<div id='mw-{$level}jspreview'>\n" . wfMsg( "{$level}jspreview" ) . "\n</div>"; |
1895 | 1897 | $class = "mw-code mw-js"; |