From 63fca7d32c148532229273bc0a11eee82e93a4d6 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Fri, 5 Jul 2019 15:57:04 +0200 Subject: fix autoloader --- php-sabre-http-autoload.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'php-sabre-http-autoload.php') diff --git a/php-sabre-http-autoload.php b/php-sabre-http-autoload.php index f305e1a..abbc601 100644 --- a/php-sabre-http-autoload.php +++ b/php-sabre-http-autoload.php @@ -6,7 +6,9 @@ require_once '/usr/share/php/Fedora/Autoloader/autoload.php'; \Fedora\Autoloader\Autoload::addPsr4('Sabre\\HTTP\\', __DIR__); // Functions -require_once __DIR__ . '/functions.php'; +if (!function_exists('Sabre\\HTTP\\parseDate')) { + require_once __DIR__ . '/functions.php'; +} \Fedora\Autoloader\Dependencies::required(array( '/usr/share/php/Sabre/Event/autoload.php', -- cgit