Skip to content

Commit

Permalink
Fixed errorneous require in AlterInit.php. Closes #167
Browse files Browse the repository at this point in the history
  • Loading branch information
rosell-dk committed Feb 14, 2019
1 parent f2c6785 commit 380e6f2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/classes/AlterHtmlInit.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 380e6f2

Please sign in to comment.