diff --git a/Lib/Resque_Job_Creator.php b/Lib/Resque_Job_Creator.php index aef1c55..dd68e86 100755 --- a/Lib/Resque_Job_Creator.php +++ b/Lib/Resque_Job_Creator.php @@ -39,7 +39,7 @@ public static function createJob($className, $args) { list($plugin, $model) = pluginSplit($className); if (self::$rootFolder === null) { - self::$rootFolder = dirname(dirname(dirname(__DIR__))) . DS; + self::$rootFolder = APP . DS; } $classpath = self::$rootFolder . (empty($plugin) ? '' : 'Plugin' . DS . $plugin . DS) . 'Console' . DS . 'Command' . DS . $model . '.php';