* (bug 12567) Fix for misformatted read-only messages on edit, protect.
[lhc/web/wiklou.git] / includes / SpecialUserrights.php
index 52ece54..8cea7fd 100644 (file)
@@ -77,6 +77,12 @@ class UserrightsPage extends SpecialPage {
                        return;
                }
 
+               if ( wfReadOnly() ) {
+                       global $wgOut;
+                       $wgOut->readOnlyPage();
+                       return;
+               }
+
                $this->outputHeader();
 
                $this->setHeaders();