Don't try to autoload file when checking if a class exists
This commit is contained in:
parent
758c174141
commit
3117b9c483
2 changed files with 3 additions and 3 deletions
|
@ -169,7 +169,7 @@ class Item extends Model
|
|||
|
||||
public static function isEnhanced($class)
|
||||
{
|
||||
if (!class_exists($class) || $class === null || $class === 'null') {
|
||||
if (!class_exists($class, false) || $class === null || $class === 'null') {
|
||||
return false;
|
||||
}
|
||||
$app = new $class;
|
||||
|
@ -179,7 +179,7 @@ class Item extends Model
|
|||
|
||||
public static function isSearchProvider($class)
|
||||
{
|
||||
if (!class_exists($class) || $class === null || $class === 'null') {
|
||||
if (!class_exists($class, false) || $class === null || $class === 'null') {
|
||||
return false;
|
||||
}
|
||||
$app = new $class;
|
||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue