R36421 - /trunk/admin/inc/class.uiconfig.inc.php

Author: ralfbecker
New Revision: 36421

URL: http://svn.stylite.de/viewvc/egroupware?rev=36421&view=rev
Log:
calling framework->render() after parsing the template, to allow callbacks to register javascript files

Modified:
trunk/admin/inc/class.uiconfig.inc.php

Modified: trunk/admin/inc/class.uiconfig.inc.php
URL: http://svn.stylite.de/viewvc/egroupware/trunk/admin/inc/class.uiconfig.inc.php?rev=36421&r1=36420&r2=36421&view=diff

— trunk/admin/inc/class.uiconfig.inc.php (original)
+++ trunk/admin/inc/class.uiconfig.inc.php Sun Sep 4 17:25:53 2011
@@ -1,6 +1,6 @@

<?php /** - * eGgroupWare admin - site configuration + * EGgroupware admin - site configuration * * @link http://www.egroupware.org * @author Miles Lott @@ -62,14 +62,14 @@ $config_appname = $appname; break; } - $t =& CreateObject('phpgwapi.Template',$GLOBALS['egw']->common->get_tpl_dir($appname)); + $t = new Template(common::get_tpl_dir($appname)); $t->set_unknowns('keep'); $t->set_file(array('config' => 'config.tpl')); $t->set_block('config','header','header'); $t->set_block('config','body','body'); $t->set_block('config','footer','footer'); - $c =& CreateObject('phpgwapi.config',$config_appname); + $c = new config($config_appname); $c->read_repository(); if ($_POST['cancel'] || $_POST['submit'] && $GLOBALS['egw']->acl->check('site_config_access',2,'admin')) @@ -134,11 +134,6 @@ $t->set_var('error',''); $t->set_var('th_err',$GLOBALS['egw_info']['theme']['th_bg']); } - // set currentapp to our calling app, to show the right sidebox-menu - $GLOBALS['egw_info']['flags']['currentapp'] = $show_app; - $GLOBALS['egw']->common->egw_header(); - echo parse_navbar(); - $t->set_var('title',lang('Site Configuration')); $t->set_var('action_url',$GLOBALS['egw']->link('/index.php','menuaction=admin.uiconfig.index&appname=' . $appname)); $t->set_var('th_bg', $GLOBALS['egw_info']['theme']['th_bg']); @@ -146,7 +141,6 @@ $t->set_var('row_on', $GLOBALS['egw_info']['theme']['row_on']); $t->set_var('row_off', $GLOBALS['egw_info']['theme']['row_off']); $t->set_var('hidden_vars',''); - $t->pparse('out','header'); $vars = $t->get_undefined('body'); @@ -230,11 +224,17 @@ break; } } - - $t->pfp('out','body'); - $t->set_var('lang_submit', $GLOBALS['egw']->acl->check('site_config_access',2,'admin') ? lang('Cancel') : lang('Save')); $t->set_var('lang_cancel', lang('Cancel')); - $t->pfp('out','footer'); + + // set currentapp to our calling app, to show the right sidebox-menu + $GLOBALS['egw_info']['flags']['currentapp'] = $show_app; + + // render the page + $GLOBALS['egw']->framework->render( + $t->parse('out','header'). + $t->fp('out','body'). + $t->fp('out','footer') + ); } } ------------------------------------------------------------------------------ Special Offer -- Download ArcSight Logger for FREE! Finally, a world-class log management solution at an even better price-free! And you'll get a free "Love Thy Logs" t-shirt when you download Logger. Secure your free ArcSight Logger TODAY! http://p.sf.net/sfu/arcsisghtdev2dev _______________________________________________ eGroupWare-cvs mailing list eGroupWare-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/egroupware-cvs