summaryrefslogtreecommitdiffstats
path: root/php-sabre-http-autoload.php
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2019-07-05 15:57:04 +0200
committerRemi Collet <remi@remirepo.net>2019-07-05 15:57:04 +0200
commit63fca7d32c148532229273bc0a11eee82e93a4d6 (patch)
treea79719a81333bc5efa5352434f790bd8f10475a8 /php-sabre-http-autoload.php
parente2b79a49231f9fec33965498f87a7977d7adc4ee (diff)
fix autoloader
Diffstat (limited to 'php-sabre-http-autoload.php')
-rw-r--r--php-sabre-http-autoload.php4
1 files changed, 3 insertions, 1 deletions
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',