Merge pull request #1513 from ralpheav/master

Adding dateformat header acording Enviroment settings
This commit is contained in:
julceslauhub
2013-04-05 09:14:49 -07:00
2 changed files with 22 additions and 4 deletions

View File

@@ -88,6 +88,11 @@ class Configurations // extends Configuration
}
}
}
public function exists($cfgID)
{
return $this->Configuration->exists($cfgID,"",'','','');
}
/**
* configObject

View File

@@ -390,8 +390,14 @@ class SkinEngine
$smarty->assign('workspace', defined('SYS_SYS')?SYS_SYS: '');
$uws = (isset($_SESSION['USR_ROLENAME']) && $_SESSION['USR_ROLENAME'] != '')? strtolower(G::LoadTranslation('ID_WORKSPACE_USING')): G::LoadTranslation('ID_WORKSPACE_USING');
$smarty->assign('workspace_label', $uws);
$smarty->assign('udate', G::getformatedDate(date('Y-m-d'), 'M d, yyyy', SYS_LANG));
G::LoadClass( "configuration" );
$conf = new Configurations();
if (defined('SYS_SYS') && $conf->exists("ENVIRONMENT_SETTINGS")) {
$smarty->assign('udate', $conf->getSystemDate(date('Y-m-d')));
} else {
$smarty->assign('udate', G::getformatedDate(date('Y-m-d'), 'M d, yyyy', SYS_LANG));
}
}
if (defined('SYS_SYS')) {
@@ -642,8 +648,15 @@ class SkinEngine
$smarty->assign('workspace', defined('SYS_SYS')?SYS_SYS: '');
$uws = (isset($_SESSION['USR_ROLENAME']) && $_SESSION['USR_ROLENAME'] != '')? strtolower(G::LoadTranslation('ID_WORKSPACE_USING')): G::LoadTranslation('ID_WORKSPACE_USING');
$smarty->assign('workspace_label', $uws);
$smarty->assign('udate', G::getformatedDate(date('Y-m-d'), 'M d, yyyy', SYS_LANG));
G::LoadClass( "configuration" );
$conf = new Configurations();
if ( defined('SYS_SYS') && $conf->exists("ENVIRONMENT_SETTINGS")) {
$smarty->assign('udate', $conf->getSystemDate(date('Y-m-d')));
} else {
$smarty->assign('udate', G::getformatedDate(date('Y-m-d'), 'M d, yyyy', SYS_LANG));
}
}
if(class_exists('pmLicenseManager')){
$pmLicenseManagerO = &pmLicenseManager::getSingleton();