Permalink
Browse files

* bugfix for autoloader, #18129

  • Loading branch information...
1 parent 5f10536 commit ce59532eac447f874603038c2f6a7c6933cbc2ac @till till committed Mar 11, 2011
Showing with 6 additions and 1 deletion.
  1. +6 −1 File/IMC.php
View
@@ -129,13 +129,18 @@ class File_IMC
const VCARD_GEO_LON = 1;
/**
+ * SPL-compatible autoloader.
+ *
* @param string $className Name of the class to load.
*
* @return boolean
*/
public static function autoload($className)
{
- return require str_replace('_', '/', $className) . '.php';
+ if (strpos($className, 'File_IMC') === false) {
+ return false;
+ }
+ return include str_replace('_', '/', $className) . '.php';
}
/**

0 comments on commit ce59532

Please sign in to comment.