diff --git a/workflow/engine/controllers/installer.php b/workflow/engine/controllers/installer.php index 206e1e047..2e0ca8349 100644 --- a/workflow/engine/controllers/installer.php +++ b/workflow/engine/controllers/installer.php @@ -337,7 +337,9 @@ class Installer extends Controller if (substr( $pathShared, - 1 ) != '/') { $pathShared .= '/'; } - $logFile = $pathShared . 'log/install.log'; + $pathSharedLog = $pathShared . 'log/'; + G::verifyPath($pathSharedLog, true); + $logFile = $pathSharedLog . 'install.log'; if (! is_file( $logFile )) { G::mk_dir( dirname( $pathShared ) ); @@ -839,6 +841,7 @@ class Installer extends Controller $updatedConf['default_skin'] = $skinUri; $info->uri = PATH_SEP . 'sys' . $_REQUEST['workspace'] . PATH_SEP . $langUri . PATH_SEP . $skinUri . PATH_SEP . 'login' . PATH_SEP . 'login'; + $indexFileUpdated = true; if (defined('PARTNER_FLAG') || isset($_REQUEST['PARTNER_FLAG'])) { $this->buildParternExtras($adminUsername, $adminPassword, $_REQUEST['workspace'], SYS_LANG); } else { diff --git a/workflow/engine/skinEngine/skinEngine.php b/workflow/engine/skinEngine/skinEngine.php index 7d74c3888..a487aa417 100755 --- a/workflow/engine/skinEngine/skinEngine.php +++ b/workflow/engine/skinEngine/skinEngine.php @@ -263,7 +263,7 @@ class SkinEngine $meta = null; $dirBody = null; - if (preg_match("/^.*\(.*MSIE (\d+)\..+\).*$/", $_SERVER["HTTP_USER_AGENT"], $arrayMatch)) { + if (isset($_SERVER["HTTP_USER_AGENT"]) && preg_match("/^.*\(.*MSIE (\d+)\..+\).*$/", $_SERVER["HTTP_USER_AGENT"], $arrayMatch)) { $ie = intval($arrayMatch[1]); $swTrident = (preg_match("/^.*Trident.*$/", $_SERVER["HTTP_USER_AGENT"]))? 1 : 0; //Trident only in IE8+