Add a unique identifier for read-only pages.
authorChad Horohoe <demon@users.mediawiki.org>
Fri, 12 Sep 2008 22:00:57 +0000 (22:00 +0000)
committerChad Horohoe <demon@users.mediawiki.org>
Fri, 12 Sep 2008 22:00:57 +0000 (22:00 +0000)
includes/OutputPage.php

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