Skip to content

Commit

Permalink
fix method signature for event file which caused strict error on 5.4
Browse files Browse the repository at this point in the history
  • Loading branch information
ceeram committed May 3, 2013
1 parent 086e431 commit e209283
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Core/Comments/Lib/CommentsEvents.php
Expand Up @@ -200,7 +200,7 @@ public function onNewCommentSaved(Event $Event, array $comment) {
}
}

public function onSlugUrl(Event $Event, array $data) {
public function onSlugUrl(Event $Event, $data = null, $type = null) {
if (!empty($data['data']['id'])) {
$url = ClassRegistry::init('Comments.InfinitasComment')->find('urlData', $data['data']['id']);
$data = current(EventCore::trigger($Event->Handler, $url['plugin'] . '.slugUrl', $url['data']));
Expand Down

0 comments on commit e209283

Please sign in to comment.