Changeset View
Changeset View
Standalone View
Standalone View
branches/5.2.x/core/install.php
Show First 20 Lines • Show All 293 Lines • ▼ Show 20 Line(s) | |||||
$writeable_base = $this->toolkit->systemConfig->get('WriteablePath', 'Misc'); | $writeable_base = $this->toolkit->systemConfig->get('WriteablePath', 'Misc'); | ||||
foreach ($this->writeableFolders as $folder_path) { | foreach ($this->writeableFolders as $folder_path) { | ||||
$file_path = FULL_PATH . str_replace('$1', $writeable_base, $folder_path); | $file_path = FULL_PATH . str_replace('$1', $writeable_base, $folder_path); | ||||
if (file_exists($file_path) && !is_writable($file_path)) { | if (file_exists($file_path) && !is_writable($file_path)) { | ||||
$this->errorMessage = '<br/>Installation can not continue until all required permissions are set correctly'; | $this->errorMessage = '<br/>Installation can not continue until all required permissions are set correctly'; | ||||
break; | break; | ||||
} | } | ||||
} | } | ||||
if ( !$this->errorMessage && $this->toolkit->systemConfig->get('DBType', 'Database') == 'mysql' ) { | |||||
$this->toolkit->systemConfig->set('DBType', 'Database', 'mysqli'); | |||||
$this->toolkit->systemConfig->save(); | |||||
} | |||||
break; | break; | ||||
case 'clean_db': | case 'clean_db': | ||||
// don't use Application, because all tables will be erased and it will crash | // don't use Application, because all tables will be erased and it will crash | ||||
$sql = 'SELECT Path | $sql = 'SELECT Path | ||||
FROM ' . TABLE_PREFIX . 'Modules'; | FROM ' . TABLE_PREFIX . 'Modules'; | ||||
$modules = $this->Conn->GetCol($sql); | $modules = $this->Conn->GetCol($sql); | ||||
▲ Show 20 Lines • Show All 1456 Lines • Show Last 20 Lines |