summaryrefslogtreecommitdiffstats
path: root/php-sabre-uri-autoload.php
diff options
context:
space:
mode:
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';
+}