From 9ce7cfb370a23e9ffd9e5b2b86a0ca95abab2b06 Mon Sep 17 00:00:00 2001 From: Chris Boulton Date: Tue, 20 Apr 2010 10:59:06 +1000 Subject: [PATCH] Change all require statements to include the full path. --- README.markdown | 2 +- lib/Resque.php | 8 ++++---- lib/Resque/Failure.php | 4 ++-- lib/Resque/Job.php | 4 ++-- lib/Resque/Worker.php | 6 +++--- 5 files changed, 12 insertions(+), 12 deletions(-) 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 @@