Updated install and fixed bugs

Added session messages display
Fixed field and validator loading.
Updated form validation
Updated root config management
Muted error reporting in file evaluation
Added menu updates
Fixed galaxy data access error
Fixed config bug
Added HTTP request method checks
Added Form manager
Fixed core bugs

Signed-off-by: Gregory PLANCHAT <g.planchat@gmail.com>
This commit is contained in:
Gregory PLANCHAT 2011-11-08 08:56:53 +01:00
commit 9636b4bb00
69 changed files with 2434 additions and 789 deletions

View file

@ -503,11 +503,15 @@ class Deprecated
/**
* @return Wootook_Core_Layout
*/
public static function getLayout()
public static function getLayout($adminPage = false)
{
if (self::$layout === null) {
self::$layout = new Wootook_Core_Layout();
self::$layout->load('empire');
if (defined('IN_INSTALL')) {
self::$layout->setPackage('install');
self::$layout->setTheme('default');
}
}
return self::$layout;
@ -528,7 +532,13 @@ function display($page, $title = '', $topnav = true, $metatags = '', $adminPage
defined('DEPRECATION') || trigger_error(sprintf('%s is deprecated', __FUNCTION__), E_USER_DEPRECATED);
// TODO: implement extra meta tags
$layout = Deprecated::getLayout();
$layout = Deprecated::getLayout($adminPage);
if ($adminPage === false) {
$layout->load('empire');
} else {
$layout->load('admin');
}
$content = $layout->getBlock('content');
if ($topnav) {