From: Jeroen De Dauw Date: Mon, 19 Jul 2010 04:15:38 +0000 (+0000) Subject: Clarified field and method visibility X-Git-Tag: 1.31.0-rc.0~36091 X-Git-Url: http://git.cyclocoop.org/%22%2C%20generer_url_ecrire%28?a=commitdiff_plain;h=538546eb9b09e4c231c067c234788589a41ca32f;p=lhc%2Fweb%2Fwiklou.git Clarified field and method visibility --- diff --git a/includes/installer/WebInstallerPage.php b/includes/installer/WebInstallerPage.php index 08a12ab5bb..6fa6fd63b6 100644 --- a/includes/installer/WebInstallerPage.php +++ b/includes/installer/WebInstallerPage.php @@ -78,7 +78,8 @@ abstract class WebInstallerPage { } class WebInstaller_Language extends WebInstallerPage { - function execute() { + + public function execute() { global $wgLang; $r = $this->parent->request; $userLang = $r->getVal( 'UserLang' ); @@ -141,9 +142,9 @@ class WebInstaller_Language extends WebInstallerPage { } /** - * Get a for selecting languages. */ - function getLanguageSelector( $name, $label, $selectedCode ) { + public function getLanguageSelector( $name, $label, $selectedCode ) { global $wgDummyLanguageCodes; $s = Xml::openElement( 'select', array( 'id' => $name, 'name' => $name ) ) . "\n"; @@ -157,10 +158,12 @@ class WebInstaller_Language extends WebInstallerPage { $s .= "\n\n"; return $this->parent->label( $label, $name, $s ); } + } class WebInstaller_Welcome extends WebInstallerPage { - function execute() { + + public function execute() { if ( $this->parent->request->wasPosted() ) { if ( $this->getVar( '_Environment' ) ) { return 'continue'; @@ -174,10 +177,12 @@ class WebInstaller_Welcome extends WebInstallerPage { $this->endForm(); } } + } class WebInstaller_DBConnect extends WebInstallerPage { - function execute() { + + public function execute() { $r = $this->parent->request; if ( $r->wasPosted() ) { $status = $this->submit(); @@ -189,7 +194,6 @@ class WebInstaller_DBConnect extends WebInstallerPage { } } - $this->startForm(); $types = "