phpgroupware-cvs
[Top][All Lists]
Advanced

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

[Phpgroupware-cvs] phpgwapi/inc class.xslttemplates.inc.php


From: Sigurd Nes
Subject: [Phpgroupware-cvs] phpgwapi/inc class.xslttemplates.inc.php
Date: Fri, 10 Nov 2006 20:48:06 +0000

CVSROOT:        /sources/phpgwapi
Module name:    phpgwapi
Changes by:     Sigurd Nes <sigurdne>   06/11/10 20:48:06

Modified files:
        inc            : class.xslttemplates.inc.php 

Log message:
        force wml

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/phpgwapi/inc/class.xslttemplates.inc.php?cvsroot=phpgwapi&r1=1.34&r2=1.35

Patches:
Index: class.xslttemplates.inc.php
===================================================================
RCS file: /sources/phpgwapi/phpgwapi/inc/class.xslttemplates.inc.php,v
retrieving revision 1.34
retrieving revision 1.35
diff -u -b -r1.34 -r1.35
--- class.xslttemplates.inc.php 28 Sep 2006 12:48:08 -0000      1.34
+++ class.xslttemplates.inc.php 10 Nov 2006 20:48:06 -0000      1.35
@@ -8,7 +8,7 @@
        * @license http://www.gnu.org/licenses/lpl.html GNU General Public 
License
        * @package phpgwapi
        * @subpackage gui
-       * @version $Id: class.xslttemplates.inc.php,v 1.34 2006/09/28 12:48:08 
skwashd Exp $
+       * @version $Id: class.xslttemplates.inc.php,v 1.35 2006/11/10 20:48:06 
sigurdne Exp $
        */
 
        if( (floor(phpversion()) == 4 && !extension_loaded('xslt') )
@@ -32,6 +32,7 @@
        {
                var $rootdir = '';
                var $prev_rootdir = '';
+               var $wml_out = '';
 
                /**
                * The xslfiles will be loaded up and merged into $xsldata
@@ -277,8 +278,17 @@
                {
                        $output_header = 
!(isset($GLOBALS['phpgw_info']['flags']['noframework']) && 
$GLOBALS['phpgw_info']['flags']['noframework']);
                        
+                       
+                       if($this->wml_out)
+                       {
+                               // Force the output to wml
+                               $wml_out = $this->wml_out;
+                       }
+                       else
+                       {
                        // Determine whether the browser is wml-capable or not
                        $wml_out = execMethod('phpgwapi.browser.is_mobile');
+                       }
                        
                        if ( !$wml_out )
                        {




reply via email to

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