mirror of
https://github.com/e107inc/e107.git
synced 2025-08-18 04:12:00 +02:00
New event trigger names. See http://e107.org/developer-manual/classes-and-methods#events
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user