$this is better that $wgOut :P
authorAlexandre Emsenhuber <ialex@users.mediawiki.org>
Fri, 12 Sep 2008 22:22:32 +0000 (22:22 +0000)
committerAlexandre Emsenhuber <ialex@users.mediawiki.org>
Fri, 12 Sep 2008 22:22:32 +0000 (22:22 +0000)
includes/OutputPage.php

index 71eb8a4..9814b71 100644 (file)
@@ -1252,7 +1252,7 @@ class OutputPage {
                        // Wiki is read only
                        $this->setPageTitle( wfMsg( 'readonly' ) );
                        $reason = wfReadOnlyReason();
-                       $wgOut->wrapWikiMsg( '<div class="mw-readonly-error">$1</div>', 'readonlytext' );
+                       $this->wrapWikiMsg( '<div class="mw-readonly-error">$1</div>', 'readonlytext' );
                }
 
                // Show source, if supplied