1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-18 04:12:00 +02:00
This commit is contained in:
Cameron
2015-02-09 12:57:42 -08:00
parent d018cef6de
commit 8b9bfd3725
6 changed files with 44 additions and 28 deletions

View File

@@ -99,10 +99,7 @@ class e107_event
}
catch(Exception $e)
{
//TODO log errors $eventname, $location, $class, $method
// echo "event didn't work. Class=".$class." Method=".$method;
// echo "<br />".$e;
//exit;
e107::getLog()->add('Event Trigger failed',array('name'=>$eventname,'location'=>$location,'class'=>$class,'method'=>$method,'error'=>$e),E_LOG_WARNING,'EVENT_01');
continue;
}
}
@@ -114,7 +111,9 @@ class e107_event
break;
}
}
//TODO log errors $eventname, $location, $evt_func
e107::getLog()->add('Event Trigger failed',array('name'=>$eventname,'location'=>$location,'function'=>$evt_func),E_LOG_WARNING,'EVENT_01');
}
}
return (isset($ret) ? $ret : false);
@@ -123,8 +122,9 @@ class e107_event
/**
* @Deprecated
*/
function triggerAdminEvent($type, $parms=array())
{
global $pref;