phpgroupware-cvs
[Top][All Lists]
Advanced

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

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


From: Sigurd Nes
Subject: [Phpgroupware-cvs] phpgwapi/inc class.calendar_holidays.inc.php
Date: Tue, 28 Nov 2006 07:32:37 +0000

CVSROOT:        /sources/phpgwapi
Module name:    phpgwapi
Changes by:     Sigurd Nes <sigurdne>   06/11/28 07:32:37

Modified files:
        inc            : class.calendar_holidays.inc.php 

Log message:
        stop calling by reference

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/phpgwapi/inc/class.calendar_holidays.inc.php?cvsroot=phpgwapi&r1=1.5&r2=1.6

Patches:
Index: class.calendar_holidays.inc.php
===================================================================
RCS file: /sources/phpgwapi/phpgwapi/inc/class.calendar_holidays.inc.php,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -b -r1.5 -r1.6
--- class.calendar_holidays.inc.php     3 Sep 2006 06:15:26 -0000       1.5
+++ class.calendar_holidays.inc.php     28 Nov 2006 07:32:37 -0000      1.6
@@ -477,7 +477,7 @@
        * @param integer &$newyear Year of end date
        * @static
        */
-       function 
add_number_of_workdays($startday,$startmonth,$startyear,$workdays,$country,$federal_state,$religion,&$newday,&$newmonth,&$newyear)
+       function 
add_number_of_workdays($startday,$startmonth,$startyear,$workdays,$country,$federal_state,$religion)
        {
          $jd = gregoriantojd($startmonth,$startday,$startyear)+1;
          $timestamp  = jdtounix($jd);
@@ -502,6 +502,15 @@
                }
                $addwdays = $workdays - $wdays;
          }
+         
+         $days = array
+               (
+                       'newday'=>$newday,
+                       'newmonth'=>$newmonth,
+                       'newyear'=>$newyear,
+                       
+               );
+         return $days;
        }
 
 




reply via email to

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