From bee642a6b9de946f507b73f07412d4ee2127fe45 Mon Sep 17 00:00:00 2001 From: Daniel Hensby Date: Sat, 14 Feb 2015 22:02:50 +0000 Subject: [PATCH] FIX make class loader classExists check interface_exists as per docs --- core/manifest/ClassLoader.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/manifest/ClassLoader.php b/core/manifest/ClassLoader.php index b8a914d65..cc7b8ffbf 100644 --- a/core/manifest/ClassLoader.php +++ b/core/manifest/ClassLoader.php @@ -95,13 +95,13 @@ class SS_ClassLoader { } /** - * Returns true if a class name exists in the manifest. + * Returns true if a class or interface name exists in the manifest. * * @param string $class * @return bool */ public function classExists($class) { - return class_exists($class, false) || $this->getItemPath($class); + return class_exists($class, false) || interface_exists($class, false) || $this->getItemPath($class); } }