From 35f50c68686fc440ddd10aeced2b98a4679cf9ab Mon Sep 17 00:00:00 2001 From: vladko Date: Mon, 22 Jun 2015 18:53:19 -0400 Subject: [PATCH] using APP constant for dir name --- Lib/Resque_Job_Creator.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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';