diff --git a/README.markdown b/README.markdown index 1daf4a2..0f2289c 100644 --- a/README.markdown +++ b/README.markdown @@ -42,7 +42,7 @@ pre and post jobs Jobs are queued as follows: - require_once 'Resque.php'; + require_once 'lib/Resque.php'; // Required if redis is located elsewhere Resque::setBackend('localhost', 6379); diff --git a/lib/Resque.php b/lib/Resque.php index 705f1eb..3a04f18 100644 --- a/lib/Resque.php +++ b/lib/Resque.php @@ -1,5 +1,5 @@ updateStatus(Resque_Job_Status::STATUS_FAILED); - require_once 'Failure.php'; + require_once dirname(__FILE__) . '/Failure.php'; Resque_Failure::create( $this->payload, $exception, diff --git a/lib/Resque/Worker.php b/lib/Resque/Worker.php index 6779470..2f4a1e0 100644 --- a/lib/Resque/Worker.php +++ b/lib/Resque/Worker.php @@ -1,7 +1,7 @@