use __DIR__

This commit is contained in:
Chris Boulton 2013-01-12 23:07:15 +11:00
parent a77699549b
commit a6eb8e1c45
3 changed files with 3 additions and 3 deletions

View File

@ -7,7 +7,7 @@
* @package Redisent * @package Redisent
*/ */
require_once dirname(__FILE__) . '/Redisent.php'; require_once __DIR__ . '/Redisent.php';
/** /**
* A generalized Redisent interface for a cluster of Redis servers * A generalized Redisent interface for a cluster of Redis servers

View File

@ -2,7 +2,7 @@
// Third- party apps may have already loaded Resident from elsewhere // Third- party apps may have already loaded Resident from elsewhere
// so lets be careful. // so lets be careful.
if(!class_exists('Redisent', false)) { if(!class_exists('Redisent', false)) {
require_once dirname(__FILE__) . '/../Redisent/Redisent.php'; require_once __DIR__ . '/../Redisent/Redisent.php';
} }
/** /**

View File

@ -2,7 +2,7 @@
// Third- party apps may have already loaded Resident from elsewhere // Third- party apps may have already loaded Resident from elsewhere
// so lets be careful. // so lets be careful.
if(!class_exists('RedisentCluster', false)) { if(!class_exists('RedisentCluster', false)) {
require_once dirname(__FILE__) . '/../Redisent/RedisentCluster.php'; require_once __DIR__ . '/../Redisent/RedisentCluster.php';
} }
/** /**