diff options
Diffstat (limited to 'php-horde-Horde-Autoloader-Sabre.patch')
-rw-r--r-- | php-horde-Horde-Autoloader-Sabre.patch | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/php-horde-Horde-Autoloader-Sabre.patch b/php-horde-Horde-Autoloader-Sabre.patch index cd12651..a6c5cd1 100644 --- a/php-horde-Horde-Autoloader-Sabre.patch +++ b/php-horde-Horde-Autoloader-Sabre.patch @@ -13,14 +13,14 @@ diff -up Horde_Autoloader-2.1.0/lib/Horde/Autoloader/Default.php.fedora Horde_Au new Horde_Autoloader_ClassPathMapper_Default($path) ); } -+ /* Ensure Sabre is taken from /usr/share/php, as /usr/share/pear may contains old version */ -+ if (is_dir($sabre = '/usr/share/php/Sabre')) { -+ $this->addClassPathMapper(new Horde_Autoloader_ClassPathMapper_Prefix('/^Sabre\\\\/', $sabre)); -+ } -+ /* Keep VObject from pear (v2.1), not ready for v3.1 */ -+ if (is_dir($vobject = '/usr/share/pear/Sabre/VObject')) { -+ $this->addClassPathMapper(new Horde_Autoloader_ClassPathMapper_Prefix('/^Sabre\\\\VObject\\\\/', $vobject)); ++ /* Allow Class Path overload */ ++ foreach(glob('/usr/share/pear/Horde/*/rpmclassmap.php') as $inc) { ++ $tab = include($inc); ++ foreach ($tab as $regex => $path) { ++ $this->addClassPathMapper(new Horde_Autoloader_ClassPathMapper_Prefix($regex, $path)); ++ } + } ++ unset($tab, $inc); } } |