Disable forward/back when installer is disabled
authorChad Horohoe <demon@users.mediawiki.org>
Wed, 10 Nov 2010 12:58:22 +0000 (12:58 +0000)
committerChad Horohoe <demon@users.mediawiki.org>
Wed, 10 Nov 2010 12:58:22 +0000 (12:58 +0000)
includes/installer/WebInstallerPage.php

index 5a806b3..2f2dc86 100644 (file)
@@ -87,7 +87,7 @@ abstract class WebInstallerPage {
                return str_replace( 'WebInstaller_', '', get_class( $this ) );
        }
 
-       public function getId() {
+       protected function getId() {
                return array_search( $this->getName(), $this->parent->pageSequence );
        }
 
@@ -117,7 +117,6 @@ abstract class WebInstallerPage {
 }
 
 class WebInstaller_Locked extends WebInstallerPage {
-
        // The status of Installer::getLocalSettingsStatus()
        private $status;
 
@@ -125,6 +124,10 @@ class WebInstaller_Locked extends WebInstallerPage {
                $this->status = $s;
        }
 
+       protected function getId() {
+               return 0;
+       }
+
        public function execute() {
                $r = $this->parent->request;
                if( !$r->wasPosted() || !$this->status->isOK() ) {
@@ -157,7 +160,7 @@ class WebInstaller_Locked extends WebInstallerPage {
                                ) )
                        );
                }
-               $this->endForm();
+               $this->endForm( false );
        }
 }