Index: trunk/phase3/includes/Article.php |
— | — | @@ -781,10 +781,10 @@ |
782 | 782 | # XXX: use $this->mTitle->usCssJsSubpage() when php is fixed/ a workaround is found |
783 | 783 | if ( |
784 | 784 | $ns == NS_USER && |
785 | | - preg_match('/\\/[\\w]+\\.(?:css|js)$/', $this->mTitle->getDBkey()) |
| 785 | + preg_match('!/[\w]+\.(css|js)$!', $this->mTitle->getDBkey(), $matches) |
786 | 786 | ) { |
787 | 787 | $wgOut->addWikiText( wfMsg('clearyourcache')); |
788 | | - $wgOut->addHTML( '<pre>'.htmlspecialchars($this->mContent)."\n</pre>" ); |
| 788 | + $wgOut->addHTML( "<pre class=\"mw-user-{$matches[1]}\" dir=\"ltr\">".htmlspecialchars($this->mContent)."\n</pre>" ); |
789 | 789 | } else if ( $rt = Title::newFromRedirect( $text ) ) { |
790 | 790 | # Display redirect |
791 | 791 | $imageDir = $wgContLang->isRTL() ? 'rtl' : 'ltr'; |
Index: trunk/phase3/RELEASE-NOTES |
— | — | @@ -74,6 +74,8 @@ |
75 | 75 | a path to the AdminSettings.php file |
76 | 76 | * (bug 8781) Remind users to check file permissions for LocalSettings.php |
77 | 77 | post-installation |
| 78 | +* (bug 10196) Add classes and dir="ltr" to the <pre>s on user CSS and JS pages |
| 79 | + (new classes: mw-user-css, mw-user-js) |
78 | 80 | |
79 | 81 | == Bugfixes since 1.10 == |
80 | 82 | |