fmsystem-commits
[Top][All Lists]
Advanced

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

[Fmsystem-commits] [8289] rental: fix call to function


From: Sigurd Nes
Subject: [Fmsystem-commits] [8289] rental: fix call to function
Date: Wed, 14 Dec 2011 08:49:54 +0000

Revision: 8289
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=8289
Author:   sigurdne
Date:     2011-12-14 08:49:53 +0000 (Wed, 14 Dec 2011)
Log Message:
-----------
rental: fix call to function

Modified Paths:
--------------
    branches/Version-1_0-branch/rental/inc/class.uiadjustment.inc.php
    branches/Version-1_0-branch/rental/inc/class.uiparty.inc.php

Modified: branches/Version-1_0-branch/rental/inc/class.uiadjustment.inc.php
===================================================================
--- branches/Version-1_0-branch/rental/inc/class.uiadjustment.inc.php   
2011-12-14 08:43:03 UTC (rev 8288)
+++ branches/Version-1_0-branch/rental/inc/class.uiadjustment.inc.php   
2011-12-14 08:49:53 UTC (rev 8289)
@@ -13,8 +13,8 @@
                'edit'                                  => true,
                'view'                                  => true,
                'show_affected_contracts' =>    true,
-               'delete'                                => true
-//             'run_adjustments'               => true
+               'delete'                                => true,
+               'run_adjustments'               => true
        );
        
        public function __construct()

Modified: branches/Version-1_0-branch/rental/inc/class.uiparty.inc.php
===================================================================
--- branches/Version-1_0-branch/rental/inc/class.uiparty.inc.php        
2011-12-14 08:43:03 UTC (rev 8288)
+++ branches/Version-1_0-branch/rental/inc/class.uiparty.inc.php        
2011-12-14 08:49:53 UTC (rev 8289)
@@ -285,7 +285,7 @@
                        return;
                }
                $bofelles = rental_bofellesdata::get_instance();
-               
+
                $parties = rental_soparty::get_instance()->get();
                $result_count = rental_soparty::get_instance()->get_count();
                $updated_parties;
@@ -329,24 +329,24 @@
 
                        $updated_parties[] = "Number of parties found through 
result unit number {$count_result_unit_number}";
                        $updated_parties[] = "Number of parties that have been 
updated {$count}";
-                       log_sync_messages($updated_parties);
+                       $this->log_sync_messages($updated_parties);
                }
        }
        
-        private function log_sync_messages($messages) {
-               
-            $msgs = array_merge(
-               array('---------------Messages-------------------'),
-               $messages
-            );
-            
-            //use PHPGW tmp-catalog to store log-file
-            $path = $GLOBALS['phpgw_info']['server']['temp_dir'];
-            
-            //Write to the log-file
-            $date_now = date('Y-m-d');
-            file_put_contents("{$path}/FD_name_sync_{$date_now}.log", 
implode(PHP_EOL, $msgs));
-        }
+       private function log_sync_messages($messages)
+       {
+               $msgs = array_merge(
+                       array('---------------Messages-------------------'),
+                       $messages
+               );
+                       
+               //use PHPGW tmp-catalog to store log-file
+               $path = $GLOBALS['phpgw_info']['server']['temp_dir'];
+                       
+               //Write to the log-file
+               $date_now = date('Y-m-d');
+               file_put_contents("{$path}/FD_name_sync_{$date_now}.log", 
implode(PHP_EOL, $msgs));
+       }
        
 
        /**




reply via email to

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