[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpgroupware-cvs] CVS: phpgwapi/inc class.Template.inc.php,1.17,1.18 cl
From: |
Mark A Peters <address@hidden> |
Subject: |
[Phpgroupware-cvs] CVS: phpgwapi/inc class.Template.inc.php,1.17,1.18 class.common.inc.php,1.128,1.129 |
Date: |
Sat, 02 Feb 2002 19:52:57 -0500 |
Update of /cvsroot/phpgroupware/phpgwapi/inc
In directory subversions:/tmp/cvs-serv15584/phpgwapi/inc
Modified Files:
class.Template.inc.php class.common.inc.php
Log Message:
A couple of small data caching in find_image().
Index: class.Template.inc.php
===================================================================
RCS file: /cvsroot/phpgroupware/phpgwapi/inc/class.Template.inc.php,v
retrieving revision 1.17
retrieving revision 1.18
diff -C2 -r1.17 -r1.18
*** class.Template.inc.php 22 Jan 2002 04:33:36 -0000 1.17
--- class.Template.inc.php 3 Feb 2002 00:52:53 -0000 1.18
***************
*** 335,341 ****
}
/* If they want NOGIF policy, then I do a global
replace */
! if ($GLOBALS['phpgw_info']['server']['image_type'] == 2)
{
! $str = str_replace ('.gif', '.png',$str);
}
return $str;
--- 335,341 ----
}
/* If they want NOGIF policy, then I do a global
replace */
! if (@$GLOBALS['phpgw_info']['server']['image_type'] ==
2)
{
! $str = str_replace ('.gif','.png',$str);
}
return $str;
Index: class.common.inc.php
===================================================================
RCS file: /cvsroot/phpgroupware/phpgwapi/inc/class.common.inc.php,v
retrieving revision 1.128
retrieving revision 1.129
diff -C2 -r1.128 -r1.129
*** class.common.inc.php 28 Jan 2002 04:07:41 -0000 1.128
--- class.common.inc.php 3 Feb 2002 00:52:53 -0000 1.129
***************
*** 777,792 ****
function find_image($appname,$image)
{
! switch($GLOBALS['phpgw_info']['server']['image_type'])
{
! case 1:
! $imgpref = Array('png','jpg','gif');
! break;
! case 2:
! $imgpref = Array('png','jpg','nogifs');
! break;
! default:
! $imgpref = Array('gif','jpg','png');
}
-
if (address@hidden($this->found_files[$appname]))
{
--- 777,796 ----
function find_image($appname,$image)
{
! static $imgpref;
! if(! @$imgpref)
{
!
switch(@$GLOBALS['phpgw_info']['server']['image_type'])
! {
! case 1:
! $imgpref =
Array('png','jpg','gif');
! break;
! case 2:
! $imgpref =
Array('png','jpg','nogifs');
! break;
! default:
! $imgpref =
Array('gif','jpg','png');
! break;
! }
}
if (address@hidden($this->found_files[$appname]))
{
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpgroupware-cvs] CVS: phpgwapi/inc class.Template.inc.php,1.17,1.18 class.common.inc.php,1.128,1.129,
Mark A Peters <address@hidden> <=