phpgroupware-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Phpgroupware-cvs] CVS: phpgwapi/inc class.common.inc.php,1.176,1.177 fu


From: Bettina Gille <address@hidden>
Subject: [Phpgroupware-cvs] CVS: phpgwapi/inc class.common.inc.php,1.176,1.177 functions.inc.php,1.161,1.162
Date: Sat, 02 Nov 2002 17:25:16 -0500

Update of /cvsroot/phpgroupware/phpgwapi/inc
In directory subversions:/tmp/cvs-serv26964/inc

Modified Files:
        class.common.inc.php functions.inc.php 
Log Message:
update xslt

Index: class.common.inc.php
===================================================================
RCS file: /cvsroot/phpgroupware/phpgwapi/inc/class.common.inc.php,v
retrieving revision 1.176
retrieving revision 1.177
diff -C2 -r1.176 -r1.177
*** class.common.inc.php        29 Oct 2002 23:11:21 -0000      1.176
--- class.common.inc.php        2 Nov 2002 22:25:13 -0000       1.177
***************
*** 1238,1241 ****
--- 1238,1243 ----
                        }
  
+                       $var['app_tpl'] = ''; 
+ 
                        switch($GLOBALS['phpgw_info']['flags']['currentapp'])
                        {
***************
*** 1245,1248 ****
--- 1247,1260 ----
                                case 'about':
                                        $var['about'] = True;
+                                       break;
+                               default:
+                                       $menuaction     = 
get_var('menuaction',Array('GET'));
+                                       $xslt_app       = 
get_var('xslt_app',Array('GET'));
+ 
+                                       if ($menuaction && 
$GLOBALS['phpgw_info']['flags']['xslt_app'])
+                                       {
+                                               $app_function   = 
strrchr($menuaction,'.');
+                                               $var['app_tpl'] = 
substr($app_function,1,strlen($app_function));
+                                       }
                                        break;
                        }

Index: functions.inc.php
===================================================================
RCS file: /cvsroot/phpgroupware/phpgwapi/inc/functions.inc.php,v
retrieving revision 1.161
retrieving revision 1.162
diff -C2 -r1.161 -r1.162
*** functions.inc.php   29 Oct 2002 22:15:31 -0000      1.161
--- functions.inc.php   2 Nov 2002 22:25:13 -0000       1.162
***************
*** 385,388 ****
--- 385,397 ----
                        }
                }
+ 
+               /* dont call the xslt_app_tpl if app isnt ported to xslt */
+               switch($GLOBALS['phpgw_info']['flags']['currentapp'])
+               {
+                       case 'notes':
+                               $GLOBALS['phpgw_info']['flags']['xslt_app'] = 
True;
+                               break;
+               }
+ 
                if($continue_app_data)
                {





reply via email to

[Prev in Thread] Current Thread [Next in Thread]