From: <gem...@li...> - 2013-02-25 08:34:50
|
Revision: 1154 http://sourceforge.net/p/gemstracker/code/1154 Author: mennodekker Date: 2013-02-25 08:34:41 +0000 (Mon, 25 Feb 2013) Log Message: ----------- Quick fix for unable to load events Modified Paths: -------------- trunk/library/classes/Gems/Events.php Modified: trunk/library/classes/Gems/Events.php =================================================================== --- trunk/library/classes/Gems/Events.php 2013-02-22 14:37:27 UTC (rev 1153) +++ trunk/library/classes/Gems/Events.php 2013-02-25 08:34:41 UTC (rev 1154) @@ -45,7 +45,7 @@ * @since Class available since version 1.4 */ class Gems_Events extends Gems_Loader_TargetLoaderAbstract -{ +{ const TRACK_COMPLETION_EVENT = 'Track/Completed'; const ROUND_CHANGED_EVENT = 'Round/Changed'; const SURVEY_BEFORE_ANSWERING_EVENT = 'Survey/BeforeAnswering'; @@ -102,8 +102,8 @@ $eventClass = str_replace('/', '_', $eventType); foreach ($this->_dirs as $name => $dir) { - $prefix = $name . '_' . $eventClass . '_'; - $paths[$prefix] = $dir . DIRECTORY_SEPARATOR . $eventType; + $prefix = $name . '_Event_'. $eventClass . '_'; + $paths[$prefix] = $dir . DIRECTORY_SEPARATOR . 'Event' . DIRECTORY_SEPARATOR . $eventType; } $paths[''] = APPLICATION_PATH . '/events/' . strtolower($eventType); // MUtil_Echo::track($paths); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |