Permalink
Browse files

Code style; EventDispatcher used instead of Dispatcher

  • Loading branch information...
1 parent 12fd487 commit 833b701776fb428d71f4c2cdfd2c4d39aec2e3dc mdobrinic committed Aug 27, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 libraries/joomla/access/access.php
@@ -347,12 +347,12 @@ public static function getGroupsByUser($userId, $recursive = true)
// Add trigger to allow for external group assignment
// nesting prevention:
if (!self::$loaded) {
- self::$loaded=true;
+ self::$loaded = true;
JPluginHelper::importPlugin('user');
}
- $dispatcher = JDispatcher::getInstance();
+ $dispatcher = JEventDispatcher::getInstance();
$r = $dispatcher->trigger('onGetGroupsByUser', array($userId, $recursive));
-
+
if (! empty($r)) {
// Collect result from all fired plugins
foreach ($r as $plugin_r) {

0 comments on commit 833b701

Please sign in to comment.