16 'config-sqlite-dir', [],
17 $this->webInstaller->getHelpBox(
'config-sqlite-dir-help' )
23 $this->webInstaller->getHelpBox(
'config-sqlite-name-help' )
33 # Try realpath() if the directory already exists
34 $dir = $this->realpath( $this->
getVar(
'wgSQLiteDataDir' ) );
35 $result = $this->getSqliteUtils()->checkDataDir( $dir );
36 if ( $result->isOK() ) {
37 # Try expanding again in case we've just created it
38 $dir = $this->realpath( $dir );
39 $this->
setVar(
'wgSQLiteDataDir', $dir );
41 # Table prefix is not used on SQLite, keep it empty
42 $this->
setVar(
'wgDBprefix',
'' );
54 private function realpath(
$path ) {
58 private function getSqliteUtils() {
59 return new SqliteUtils;