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

**URL:** <https://help.egroupware.org/t/r36421-trunk-admin-inc-class-uiconfig-inc-php/49200>\
**Category:** eGW-svn\
**Created:** [September 4, 2011, 3:25pm UTC](https://help.egroupware.org/t/r36421-trunk-admin-inc-class-uiconfig-inc-php/49200 "2011-09-04T15:25:53Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ralfbecker\_sf](https://help.egroupware.org/letter_avatar_proxy/v4/letter/r/b2d939/32.png) [@ralfbecker\_sf](https://help.egroupware.org/u/ralfbecker_sf)\
**Post date:** [September 4, 2011, 3:25pm UTC](https://help.egroupware.org/t/r36421-trunk-admin-inc-class-uiconfig-inc-php/49200/1 "2011-09-04T15:25:53Z")

</div>

Author: ralfbecker  
New Revision: 36421

URL: [http://svn.stylite.de/viewvc/egroupware?rev=36421&view=rev](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](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
