Improvement add Hook before create users

This commit is contained in:
Vera Osokina
2013-03-21 16:29:58 -04:00
parent 8876a392a5
commit fa4d06c691

View File

@@ -197,7 +197,7 @@ class RbacUsers extends BaseRbacUsers
$pluginRegistry = & PMPluginRegistry::getSingleton(); $pluginRegistry = & PMPluginRegistry::getSingleton();
if ($pluginRegistry->existsTrigger(PM_BEFORE_CREATE_USER)) { if ($pluginRegistry->existsTrigger(PM_BEFORE_CREATE_USER)) {
try { try {
$pluginRegistry->executeTriggers(PM_BEFORE_CREATE_USER); $pluginRegistry->executeTriggers(PM_BEFORE_CREATE_USER, null);
} catch(Exception $error) { } catch(Exception $error) {
throw new Exception($error->getMessage()); throw new Exception($error->getMessage());
} }