From 1350da3292c083b7cf30d234f16d86ddb9142d33 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Fri, 5 Jul 2019 15:35:44 +0200 Subject: fix autoloader --- php-sabre-uri-autoload.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'php-sabre-uri-autoload.php') 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'; +} -- cgit