DOCSYSTEM Arreglo de notices

Arreglo de notices
This commit is contained in:
Brayan Osmar Pereyra Suxo
2013-04-22 17:01:26 -04:00
parent defaca05be
commit c6bf383ed4
2 changed files with 5 additions and 2 deletions

View File

@@ -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 {

View File

@@ -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+