summaryrefslogtreecommitdiffstats
path: root/php-horde-Horde-Mongo-rpm.patch
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2016-07-13 07:23:56 +0200
committerRemi Collet <fedora@famillecollet.com>2016-07-13 07:23:56 +0200
commit07f6ed7bfb0906e8c4a4d2774b488df3da1a12bc (patch)
treecf69e5b753bf088398368740b20c462fdeb166ea /php-horde-Horde-Mongo-rpm.patch
parent93c886bc36e76fc1993117b0fe03feac42a8cd9e (diff)
php-horde-Horde-Mongo: 1.1.0
Diffstat (limited to 'php-horde-Horde-Mongo-rpm.patch')
-rw-r--r--php-horde-Horde-Mongo-rpm.patch16
1 files changed, 16 insertions, 0 deletions
diff --git a/php-horde-Horde-Mongo-rpm.patch b/php-horde-Horde-Mongo-rpm.patch
new file mode 100644
index 0000000..91ea9ed
--- /dev/null
+++ b/php-horde-Horde-Mongo-rpm.patch
@@ -0,0 +1,16 @@
+diff -up Horde_Mongo-1.1.0/lib/Horde/Mongo/Client.php.pr194 Horde_Mongo-1.1.0/lib/Horde/Mongo/Client.php
+--- Horde_Mongo-1.1.0/lib/Horde/Mongo/Client.php.pr194 2016-07-13 07:08:15.255526238 +0200
++++ Horde_Mongo-1.1.0/lib/Horde/Mongo/Client.php 2016-07-13 07:09:37.264976432 +0200
+@@ -13,10 +13,8 @@
+
+ if (!extension_loaded('mongo')) {
+ // use the compatibility layer and mongodb extension
+- if (file_exists(__DIR__ . '/vendor/autoload.php')) {
+- require_once __DIR__ . '/vendor/autoload.php'; // PEAR installation
+- } else {
+- require_once __DIR__ . '/../../../bundle/vendor/autoload.php'; // GIT
++ if (file_exists('/usr/share/php/Alcaeus/MongoDbAdapter/autoload.php')) {
++ require_once '/usr/share/php/Alcaeus/MongoDbAdapter/autoload.php';
+ }
+ }
+