mirror of
https://github.com/idanoo/php-resque
synced 2025-07-01 13:42:22 +00:00
Merge pull request #18 from humancopy/master
A small fix for a small bug with __autoload and class_exists :)
This commit is contained in:
commit
cd47df2458
2 changed files with 2 additions and 2 deletions
|
@ -1,7 +1,7 @@
|
||||||
<?php
|
<?php
|
||||||
// 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')) {
|
if(!class_exists('Redisent', false)) {
|
||||||
require_once dirname(__FILE__) . '/../Redisent/Redisent.php';
|
require_once dirname(__FILE__) . '/../Redisent/Redisent.php';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<?php
|
<?php
|
||||||
// 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')) {
|
if(!class_exists('RedisentCluster', false)) {
|
||||||
require_once dirname(__FILE__) . '/../Redisent/RedisentCluster.php';
|
require_once dirname(__FILE__) . '/../Redisent/RedisentCluster.php';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue