summaryrefslogtreecommitdiffstats
path: root/glpi-fedora-autoloader.php
diff options
context:
space:
mode:
Diffstat (limited to 'glpi-fedora-autoloader.php')
-rw-r--r--glpi-fedora-autoloader.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/glpi-fedora-autoloader.php b/glpi-fedora-autoloader.php
index 6482af4..128d592 100644
--- a/glpi-fedora-autoloader.php
+++ b/glpi-fedora-autoloader.php
@@ -12,7 +12,11 @@ require_once $vendor . '/php-iamcal-lib-autolink/autoload.php';
// "phpmailer/phpmailer"
require_once $vendor . '/PHPMailer/PHPMailerAutoload.php';
// "sabre/vobject"
-require_once $vendor . '/Sabre/VObject/autoload.php';
+if (file_exists($vendor . '/Sabre/VObject4/autoload.php')) {
+ require_once $vendor . '/Sabre/VObject4/autoload.php';
+} else {
+ require_once $vendor . '/Sabre/VObject/autoload.php';
+}
// "simplepie/simplepie"
require_once $vendor . '/php-simplepie/autoloader.php';
// "tecnickcom/tcpdf"