DOC SYSTEM Cambio del instalador para cambiar la url de redireccion

Cambio del instalador para cambiar la url de redireccion
This commit is contained in:
Brayan Osmar Pereyra Suxo
2013-04-17 11:43:20 -04:00
parent 545c46529f
commit 67ae008a2d

View File

@@ -822,10 +822,26 @@ class Installer extends Controller
G::loadClass( 'system' ); G::loadClass( 'system' );
$envFile = PATH_CONFIG . 'env.ini'; $envFile = PATH_CONFIG . 'env.ini';
//writting for new installtions to use the classic skin // getting configuration from env.ini
$updatedConf['default_skin'] = 'classic'; $sysConf = System::getSystemConfiguration( $envFile );
$info->uri = '/sys' . $_REQUEST['workspace'] . '/en/classic/login/login';
$langUri = 'en';
if (isset($sysConf['default_lang'])) {
$langUri = $sysConf['default_lang'];
}
$skinUri = 'classic';
if (isset($sysConf['default_skin'])) {
$skinUri = $sysConf['default_skin'];
}
$updatedConf['default_lang'] = $langUri;
$updatedConf['default_skin'] = $skinUri;
$info->uri = PATH_SEP . 'sys' . $_REQUEST['workspace'] . PATH_SEP . $langUri . PATH_SEP . $skinUri . PATH_SEP . 'login' . PATH_SEP . 'login';
if (defined('PARTNER_FLAG') || isset($_REQUEST['PARTNER_FLAG'])) {
$this->buildParternExtras($adminUsername, $adminPassword, $_REQUEST['workspace'], SYS_LANG);
} else {
try { try {
G::update_php_ini( $envFile, $updatedConf ); G::update_php_ini( $envFile, $updatedConf );
} catch (Exception $e) { } catch (Exception $e) {
@@ -836,12 +852,6 @@ class Installer extends Controller
return $info; return $info;
} }
// getting configuration from env.ini
$sysConf = System::getSystemConfiguration( $envFile );
if (defined('PARTNER_FLAG') || isset($_REQUEST['PARTNER_FLAG'])) {
$this->buildParternExtras($adminUsername, $adminPassword, $_REQUEST['workspace'], SYS_LANG);
} else {
try { try {
// update the main index file // update the main index file
$indexFileUpdated = System::updateIndexFile(array('lang' => 'en','skin' => $updatedConf['default_skin'])); $indexFileUpdated = System::updateIndexFile(array('lang' => 'en','skin' => $updatedConf['default_skin']));