summaryrefslogtreecommitdiffstats
path: root/php-sabre-uri-autoload.php
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2019-07-05 15:35:44 +0200
committerRemi Collet <remi@remirepo.net>2019-07-05 15:35:44 +0200
commit1350da3292c083b7cf30d234f16d86ddb9142d33 (patch)
treefb30e1ce5a9c85b00df0bf52c6049f73c77d2287 /php-sabre-uri-autoload.php
parentab17d35563982c3cc08c6ada85f4d780fbbb271d (diff)
fix autoloaderHEADmaster
Diffstat (limited to 'php-sabre-uri-autoload.php')
-rw-r--r--php-sabre-uri-autoload.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/php-sabre-uri-autoload.php b/php-sabre-uri-autoload.php
index 8fc051f..b6268d1 100644
--- a/php-sabre-uri-autoload.php
+++ b/php-sabre-uri-autoload.php
@@ -6,5 +6,7 @@ require_once '/usr/share/php/Fedora/Autoloader/autoload.php';
\Fedora\Autoloader\Autoload::addPsr4('Sabre\\Uri\\', __DIR__);
// Functions
-require_once __DIR__ . '/functions.php';
+if (!function_exists('Sabre\\Uri\\resolve')) {
+ require_once __DIR__ . '/functions.php';
+}