fmsystem-commits
[Top][All Lists]
Advanced

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

[Fmsystem-commits] [11659] property: tweak cron


From: Sigurd Nes
Subject: [Fmsystem-commits] [11659] property: tweak cron
Date: Thu, 06 Feb 2014 14:17:15 +0000

Revision: 11659
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=11659
Author:   sigurdne
Date:     2014-02-06 14:17:14 +0000 (Thu, 06 Feb 2014)
Log Message:
-----------
property: tweak cron

Modified Paths:
--------------
    trunk/property/inc/cron/class.cron_parent.inc.php
    trunk/property/inc/cron/default/forward_mail_as_sms.php

Modified: trunk/property/inc/cron/class.cron_parent.inc.php
===================================================================
--- trunk/property/inc/cron/class.cron_parent.inc.php   2014-02-05 17:30:46 UTC 
(rev 11658)
+++ trunk/property/inc/cron/class.cron_parent.inc.php   2014-02-06 14:17:14 UTC 
(rev 11659)
@@ -75,7 +75,7 @@
 
                        if ($confirm)
                        {
-                               $this->execute();
+                               $this->execute($data);
                                $this->cron_log($cron);
                                // initiated from ui
                                if(!$cron)

Modified: trunk/property/inc/cron/default/forward_mail_as_sms.php
===================================================================
--- trunk/property/inc/cron/default/forward_mail_as_sms.php     2014-02-05 
17:30:46 UTC (rev 11658)
+++ trunk/property/inc/cron/default/forward_mail_as_sms.php     2014-02-06 
14:17:14 UTC (rev 11659)
@@ -32,15 +32,14 @@
                        $this->bocommon         = 
CreateObject('property.bocommon');
                }
 
-               function execute()
+               function execute($data = array())
                {
-                       $this->check_for_new_mail();
+                       $data['account_id'] = 
$GLOBALS['phpgw']->accounts->name2id($data['user']);
+                       $this->check_for_new_mail($data);
                }
 
-               function check_for_new_mail()
+               function check_for_new_mail($data)
                {
-                       $data = 
$GLOBALS['phpgw']->session->appsession('session_data','mail2sms');
-
                        $GLOBALS['phpgw_info']['user']['account_id'] = 
$data['account_id'];
                        
$GLOBALS['phpgw']->preferences->set_account_id($data['data_id'], true);
 




reply via email to

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