From 380e6f2ee8189977ed23575eb3cdd4402d12f221 Mon Sep 17 00:00:00 2001 From: rosell-dk Date: Thu, 14 Feb 2019 08:54:54 +0100 Subject: [PATCH] Fixed errorneous require in AlterInit.php. Closes #167 --- lib/classes/AlterHtmlInit.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/classes/AlterHtmlInit.php b/lib/classes/AlterHtmlInit.php index 40d600e7..34cfc272 100644 --- a/lib/classes/AlterHtmlInit.php +++ b/lib/classes/AlterHtmlInit.php @@ -43,12 +43,12 @@ public static function alterHtml($content) } if (get_option('webp-express-alter-html-replacement') == 'picture') { - require_once __DIR__ . "../../../vendor/autoload.php"; + require_once __DIR__ . "/../../vendor/autoload.php"; require_once __DIR__ . '/AlterHtmlHelper.php'; require_once __DIR__ . '/AlterHtmlPicture.php'; return \WebPExpress\AlterHtmlPicture::replace($content); } else { - require_once __DIR__ . "../../../vendor/autoload.php"; + require_once __DIR__ . "/../../vendor/autoload.php"; require_once __DIR__ . '/AlterHtmlHelper.php'; require_once __DIR__ . '/AlterHtmlImageUrls.php'; return \WebPExpress\AlterHtmlImageUrls::replace($content);