and pass the reason too *stab*
authorAlexandre Emsenhuber <ialex@users.mediawiki.org>
Fri, 12 Sep 2008 22:24:15 +0000 (22:24 +0000)
committerAlexandre Emsenhuber <ialex@users.mediawiki.org>
Fri, 12 Sep 2008 22:24:15 +0000 (22:24 +0000)
includes/OutputPage.php

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