BUG 0000 "update for new main UI uxmodern to show the enterprise message"

This commit is contained in:
Erik Amaru Ortiz
2012-05-10 18:28:25 -04:00
parent c4af5f8d23
commit 7fdf9ad063
3 changed files with 40 additions and 7 deletions

View File

@@ -41,6 +41,15 @@ class Main extends Controller
$this->setVar('user_avatar', 'users/users_ViewPhotoGrid?pUID=' . $_SESSION['USER_LOGGED'].'&h=' . rand());
$this->setVar('udate', G::getformatedDate(date('Y-m-d'), 'M d, yyyy', SYS_LANG));
// license notification
$expireInLabel = '';
if (class_exists('pmLicenseManager')) {
$pmLicenseManager = &pmLicenseManager::getSingleton();
$expireIn = $pmLicenseManager->getExpireIn();
$expireInLabel = $pmLicenseManager->getExpireInLabel();
}
$this->setVar('licenseNotification', $expireInLabel);
// setting variables on javascript env.
$this->setJSVar('meta', array('menu'=>$this->getMenu()));