Index: branches/unlabeled/unlabeled-1.6.2/core/install.php =================================================================== diff -u -r6859 -r6999 --- branches/unlabeled/unlabeled-1.6.2/core/install.php (.../install.php) (revision 6859) +++ branches/unlabeled/unlabeled-1.6.2/core/install.php (.../install.php) (revision 6999) @@ -319,11 +319,11 @@ case 'root_password': // update root password in database $password = md5( md5($this->Application->GetVar('root_password')) . 'b38'); - $sql = 'UPDATE '.TABLE_PREFIX.'ConfigurationValues - SET VariableValue = '.$this->Conn->qstr($password).' - WHERE VariableName = "RootPass"'; - $this->Conn->Query($sql); - + $this->SetConfigValue('RootPass', $password); + + // set Site_Path (for SSL & old in-portal code) + $this->SetConfigValue('Site_Path', BASE_PATH.'/'); + // import base language for core (english) $this->ImportLanguage('/core/install/english'); break; @@ -362,6 +362,20 @@ } } + /** + * Sets new configuration variable value + * + * @param string $name + * @param mixed $value + */ + function SetConfigValue($name, $value) + { + $sql = 'UPDATE '.TABLE_PREFIX.'ConfigurationValues + SET VariableValue = '.$this->Conn->qstr($value).' + WHERE VariableName = '.$this->Conn->qstr($name); + $this->Conn->Query($sql); + } + function InitApplication() { if (!in_array($this->currentStep, $this->skipApplicationSteps) && !isset($this->Application)) {