diff --git a/interface/lib/app.inc.php b/interface/lib/app.inc.php index 7c63a560270516a2c0fe154779ef38bd72f8a665..25409980b2b68400623f80e10168804ae442e123 100644 --- a/interface/lib/app.inc.php +++ b/interface/lib/app.inc.php @@ -67,10 +67,11 @@ class app { public function uses($classes) { - $cl = explode(',',$classes); + $cl = explode(',',$classes); if(is_array($cl)) { foreach($cl as $classname){ $classname = trim($classname); + //* Class is not loaded so load it if(!array_key_exists($classname, $this->_loaded_classes)){ require_once($this->_conf['classpath'] . '/'.$classname.'.inc.php'); $this->$classname = new $classname(); diff --git a/interface/lib/classes/listform_actions.inc.php b/interface/lib/classes/listform_actions.inc.php index cfe880c8f080526c9f581779eb2616ca1a2136ee..44bd1d56b275893723610bf71a6371b3746a1dcc 100644 --- a/interface/lib/classes/listform_actions.inc.php +++ b/interface/lib/classes/listform_actions.inc.php @@ -47,10 +47,7 @@ class listform_actions { { global $app, $conf, $list_def_file; - //TODO: this is_object checking should be in the $appobject - pedro notes - if(!@is_object($app->tpl)) $app->uses('tpl'); - if(!@is_object($app->listform)) $app->uses('listform'); - if(!@is_object($app->tform)) $app->uses('tform'); + $app->uses('tpl,listform,tform'); //* Clear session variable that is used when lists are embedded with the listview plugin $_SESSION['s']['form']['return_to'] = ''; diff --git a/interface/web/themes/pedro/templates/main.tpl.htm b/interface/web/themes/pedro/templates/main.tpl.htm index f7d5360a1f23e7654565ae2d82d7ff3dfc9ccb4c..6e5afb57d3a0efc3bf6a3bd8b5b2549352c01ff2 100644 --- a/interface/web/themes/pedro/templates/main.tpl.htm +++ b/interface/web/themes/pedro/templates/main.tpl.htm @@ -9,7 +9,7 @@ <script src="js/scrigo.js"></script> </head> <body bgcolor="#FFFFFF" leftmargin=0 topmargin=0 marginwidth=0 marginheight=0 onLoad="loadInitContent()"> -### + <table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0"> <tr bgcolor="#496FA8"> <td height="30" colspan="2" align="right" valign="top" backgrosund="themes/default/images/bg_nav_1.jpg"><!--<img src="themes/default/images/mydnsconfig_logo.gif" border="0" alt="">--></td>