Use Events class constant instead of raw event name in track.php

This commit is contained in:
Dmitriy Simushev 2014-10-29 12:39:59 +00:00
parent 336d8c1faa
commit be7d49c0f5

View File

@ -84,7 +84,7 @@ function track_visitor_start($entry, $referer)
}
$args = array('visitor' => track_get_visitor_by_id($id));
EventDispatcher::getInstance()->triggerEvent('visitorCreate', $args);
EventDispatcher::getInstance()->triggerEvent(Events::VISITOR_CREATE, $args);
return $id ? $id : 0;
}