Use Util::realPath().
authorJan Schneider <jan@horde.org>
Fri, 3 Jul 2009 00:46:43 +0000 (02:46 +0200)
committerJan Schneider <jan@horde.org>
Mon, 27 Jul 2009 20:47:50 +0000 (22:47 +0200)
framework/Autoloader/lib/Horde/Autoloader.php

index 1c4a1bb..595387b 100644 (file)
@@ -77,7 +77,7 @@ class Horde_Autoloader
     public static function addClassPath($path, $prepend = true)
     {
         if (is_null(self::$_includeCache)) {
-            self::$_includeCache = array_keys(array_flip(array_map('realpath', explode(PATH_SEPARATOR, get_include_path()))));
+            self::$_includeCache = array_keys(array_flip(array_map(array('Horde_Util', 'realPath'), explode(PATH_SEPARATOR, get_include_path()))));
         }
 
         $path = realpath($path);