/**
* Constructor.
*
- * @param $siteName
- * @param $admin
- * @param $option Array
+ * @param string $siteName
+ * @param string $admin
+ * @param array $option
*/
function __construct( $siteName, $admin = null, array $option = array() ) {
global $wgContLang;
public function startStage( $step ) {
// Messages: config-install-database, config-install-tables, config-install-interwiki,
- // config-install-stats, config-install-keys, config-install-sysop, config-install-mainpage
+ // config-install-stats, config-install-keys, config-install-sysop, config-install-mainpage,
+ // config-install-extensions
$this->showMessage( "config-install-$step" );
}
}
/**
- * @param $params array
+ * @param array $params
*
* @return string
*/
$text = wfMessage( $msg, $params )->parse();
$text = preg_replace( '/<a href="(.*?)".*?>(.*?)<\/a>/', '$2 <$1>', $text );
+
return html_entity_decode( strip_tags( $text ), ENT_QUOTES );
}
if ( !$this->specifiedScriptPath ) {
$this->showMessage( 'config-no-cli-uri', $this->getVar( "wgScriptPath" ) );
}
+
return parent::envCheckPath();
}
protected function envGetDefaultServer() {
- return $this->getVar( 'wgServer' );
+ return null; // Do not guess if installing from CLI
}
public function dirIsExecutable( $dir, $url ) {
$this->showMessage( 'config-no-cli-uploads-check', $dir );
+
return false;
}
}