R25176 - in /trunk/tracker/inc: class.botracker.inc.php class.uitracker.inc.php

Author: ralfbecker
New Revision: 25176

URL: http://www.egroupware.org/viewvc?rev=3D25176&view=3Drev
Log:
removed unnecessary instancations and using static methods of html and egw_=
link class

Modified:
trunk/tracker/inc/class.botracker.inc.php
trunk/tracker/inc/class.uitracker.inc.php

Modified: trunk/tracker/inc/class.botracker.inc.php
URL: http://www.egroupware.org/viewvc/trunk/tracker/inc/class.botracker.inc=
.php?rev=3D25176&r1=3D25175&r2=3D25176&view=3Ddiff
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D
— trunk/tracker/inc/class.botracker.inc.php (original)
+++ trunk/tracker/inc/class.botracker.inc.php Tue Mar 25 17:16:36 2008
@@ -295,10 +295,6 @@
{
$this->sotracker();

  •   if (!is_object($GLOBALS['egw']->datetime))
    
  •   {
    
  •   	$GLOBALS['egw']->datetime =3D& CreateObject('phpgwapi.datetime');
    
  •   }
      $this->tz_offset_s =3D $GLOBALS['egw']->datetime->tz_offset;
      $this->now =3D time() + $this->tz_offset_s;	// time() is server-time and=
    

we need a user-time
=

@@ -790,13 +786,13 @@
{
$GLOBALS[‘egw’]->categories =3D& CreateObject(‘phpgwapi.categories’,$t=
his->user,‘tracker’);
}

  •   	if (is_object($GLOBALS['egw']->categories) && $GLOBALS['egw']->categori=
    

es->app_name =3D=3D ‘tracker’)

  •   	{
    
  •   		$cats =3D& $GLOBALS['egw']->categories;
    
  •   	if (isset($GLOBALS['egw']->categories) && $GLOBALS['egw']->categories->=
    

app_name =3D=3D ‘tracker’)

  •   	{
    
  •   		$cats =3D $GLOBALS['egw']->categories;
      	}
      	else
      	{
    
  •   		$cats =3D& CreateObject('phpgwapi.categories',$this->user,'tracker');
    
  •   		$cats =3D new categories($this->user,'tracker');
      	}
      	$this->all_cats =3D $cats->return_array('all',0,false);
      	if (!is_array($this->all_cats)) $this->all_cats =3D array();
    

Modified: trunk/tracker/inc/class.uitracker.inc.php
URL: http://www.egroupware.org/viewvc/trunk/tracker/inc/class.uitracker.inc=
.php?rev=3D25176&r1=3D25175&r2=3D25176&view=3Ddiff
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D
— trunk/tracker/inc/class.uitracker.inc.php (original)
+++ trunk/tracker/inc/class.uitracker.inc.php Tue Mar 25 17:16:36 2008
@@ -492,10 +492,6 @@

	if (!$tr_id && isset($_REQUEST['link_app']) && isset($_REQUEST['link_id'=

]) && !is_array($content[‘link_to’][‘to_id’]))
{

  •   	if (!is_object($GLOBALS['egw']->link))
    
  •   	{
    
  •   		$GLOBALS['egw']->link =3D& CreateObject('phpgwapi.bolink');
    
  •   	}
      	$link_ids =3D is_array($_REQUEST['link_id']) ? $_REQUEST['link_id'] : a=
    

rray($_REQUEST[‘link_id’]);
foreach(is_array($_REQUEST[‘link_app’]) ? $_REQUEST[‘link_app’] : array=
($_REQUEST[‘link_app’]) as $n =3D> $link_app)
{
@@ -594,11 +590,6 @@
*/
function get_rows(&$query_in,&$rows,&$readonlys)
{

  •   // KL 20070129 is object -> create object
    
  •   if (!is_object($GLOBALS['egw']->link))
    
  •   {
    
  •   	$GLOBALS['egw']->link =3D& CreateObject('phpgwapi.bolink');
    
  •   }
      if (!$this->allow_voting && $query_in['order'] =3D=3D 'votes' ||	// in c=
    

ase the tracker-config changed in that session
!$this->allow_bounties && $query_in[‘order’] =3D=3D ‘bounties’) $query_=
in[‘order’] =3D ‘tr_id’;


This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft® Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/


eGroupWare-cvs mailing list
eGroupWare-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/egroupware-cvs