diff --git a/lib/Redisent/RedisentCluster.php b/lib/Redisent/RedisentCluster.php index ea93611..215726e 100644 --- a/lib/Redisent/RedisentCluster.php +++ b/lib/Redisent/RedisentCluster.php @@ -7,7 +7,7 @@ * @package Redisent */ -require_once dirname(__FILE__) . '/Redisent.php'; +require_once __DIR__ . '/Redisent.php'; /** * A generalized Redisent interface for a cluster of Redis servers diff --git a/lib/Resque/Redis.php b/lib/Resque/Redis.php index dcfc47d..1cff624 100644 --- a/lib/Resque/Redis.php +++ b/lib/Resque/Redis.php @@ -2,7 +2,7 @@ // Third- party apps may have already loaded Resident from elsewhere // so lets be careful. if(!class_exists('Redisent', false)) { - require_once dirname(__FILE__) . '/../Redisent/Redisent.php'; + require_once __DIR__ . '/../Redisent/Redisent.php'; } /** diff --git a/lib/Resque/RedisCluster.php b/lib/Resque/RedisCluster.php index 100bdb7..21caeb7 100644 --- a/lib/Resque/RedisCluster.php +++ b/lib/Resque/RedisCluster.php @@ -2,7 +2,7 @@ // Third- party apps may have already loaded Resident from elsewhere // so lets be careful. if(!class_exists('RedisentCluster', false)) { - require_once dirname(__FILE__) . '/../Redisent/RedisentCluster.php'; + require_once __DIR__ . '/../Redisent/RedisentCluster.php'; } /**