Check for read only database after checking if the user is logged in, so that anonymo...
authorAlexandre Emsenhuber <ialex@users.mediawiki.org>
Wed, 12 Oct 2011 09:09:00 +0000 (09:09 +0000)
committerAlexandre Emsenhuber <ialex@users.mediawiki.org>
Wed, 12 Oct 2011 09:09:00 +0000 (09:09 +0000)
includes/specials/SpecialEditWatchlist.php

index af8e71f..5b9dd7c 100644 (file)
@@ -28,10 +28,6 @@ class SpecialEditWatchlist extends UnlistedSpecialPage {
         * @param $mode int
         */
        public function execute( $mode ) {
-               if( wfReadOnly() ) {
-                       throw new ReadOnlyError;
-               }
-
                $this->setHeaders();
 
                $out = $this->getOutput();
@@ -49,6 +45,10 @@ class SpecialEditWatchlist extends UnlistedSpecialPage {
                        return;
                }
 
+               if ( wfReadOnly() ) {
+                       throw new ReadOnlyError;
+               }
+
                $this->outputHeader();
 
                $sub  = wfMsgExt(