Skip to content

Commit

Permalink
Fixed #147 Fatal Error when AOP function redeclared
Browse files Browse the repository at this point in the history
  • Loading branch information
mattlorimer committed Mar 11, 2015
1 parent d2b97e4 commit dda786a
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@
*
* @author Salesagility Ltd <[email protected]>
*/
$mod_strings['LBL_POLLMONITOREDINBOXESCUSTOMAOP'] = 'AOP Poll Monitored Inboxes';?>
$mod_strings['LBL_POLLMONITOREDINBOXESAOP'] = 'AOP Poll Monitored Inboxes';?>
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@
*
* @author Salesagility Ltd <[email protected]>
*/
$mod_strings['LBL_POLLMONITOREDINBOXESCUSTOMAOP'] = 'AOP Procesar Casillas de Correo Monitorizadas';?>
$mod_strings['LBL_POLLMONITOREDINBOXESAOP'] = 'AOP Procesar Casillas de Correo Monitorizadas';?>
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@
*
* @author Salesagility Ltd <[email protected]>
*/
$mod_strings['LBL_POLLMONITOREDINBOXESCUSTOMAOP'] = 'Портал - проверять почтовые ящики для входящей почты';?>
$mod_strings['LBL_POLLMONITOREDINBOXESAOP'] = 'Портал - проверять почтовые ящики для входящей почты';?>
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@
* @author Salesagility Ltd <[email protected]>
*/

$job_strings[] = 'pollMonitoredInboxesCustomAOP';
$job_strings[] = 'pollMonitoredInboxesAOP';

function pollMonitoredInboxesCustomAOP() {
function pollMonitoredInboxesAOP() {
require_once 'custom/modules/InboundEmail/AOPInboundEmail.php';
$_bck_up = array('team_id' => $GLOBALS['current_user']->team_id, 'team_set_id' => $GLOBALS['current_user']->team_set_id);
$GLOBALS['log']->info('----->Scheduler fired job of type pollMonitoredInboxesCustomAOP()');
$GLOBALS['log']->info('----->Scheduler fired job of type pollMonitoredInboxesAOP()');
global $dictionary;
global $app_strings;
global $sugar_config;
Expand Down
4 changes: 2 additions & 2 deletions install/suite_install/AdvancedOpenPortal.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,14 @@ function install_aop() {
function updateScheduler(){
require_once('modules/Schedulers/Scheduler.php');
$scheduler = new Scheduler();
if(count($scheduler->get_full_list('',"job = 'function::pollMonitoredInboxesCustomAOP'"))){
if(count($scheduler->get_full_list('',"job = 'function::pollMonitoredInboxesAOP'"))){
return;
}
$scheduler->name = "AOP Check Inbound Mailboxes";
$scheduler->date_time_start = "2005-01-01 11:15:00";
$scheduler->date_time_end = "2020-12-31 00:00:00";
$scheduler->job_interval = "*/1::*::*::*::*";
$scheduler->job = "function::pollMonitoredInboxesCustomAOP";
$scheduler->job = "function::pollMonitoredInboxesAOP";
$scheduler->status = "Active";
$scheduler->catch_up = 0;
$scheduler->save();
Expand Down
2 changes: 1 addition & 1 deletion modules/Schedulers/language/ru_ru.lang.php
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,6 @@
'LBL_REMOVEDOCUMENTSFROMFS' => 'Удалять неиспользуемые файлы из системы',
);

$mod_strings['LBL_POLLMONITOREDINBOXESCUSTOMAOP'] = 'Портал - проверять почтовые ящики для входящей почты';
$mod_strings['LBL_POLLMONITOREDINBOXESAOP'] = 'Портал - проверять почтовые ящики для входящей почты';

?>

0 comments on commit dda786a

Please sign in to comment.