Skip to content

Commit

Permalink
Merge pull request joomla#3199 from chalet16/patch-1
Browse files Browse the repository at this point in the history
Make JEventDispatcher compatible with HHVM
  • Loading branch information
mbabker committed Apr 8, 2014
2 parents 4f624dc + 791f561 commit 8f6de8a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libraries/joomla/event/dispatcher.php
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,6 @@ public function attach($observer)
}

$this->_observers[] = $observer;
end($this->_observers);
$methods = array($observer['event']);
}
else
Expand All @@ -229,6 +228,7 @@ public function attach($observer)
$methods = array_diff(get_class_methods($observer), get_class_methods('JPlugin'));
}

end($this->_observers);
$key = key($this->_observers);

foreach ($methods as $method)
Expand Down

0 comments on commit 8f6de8a

Please sign in to comment.