From 0c2cd777342e90cd4bc849107bbe674df4d32956 Mon Sep 17 00:00:00 2001 From: j25j5 Date: Wed, 7 Feb 2024 15:43:46 +0100 Subject: [PATCH] removed obsolete insert tag replacement for backend --- .gitignore | 2 +- src/EventListener/ParseFrontendTemplateListener.php | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index aff45cd..eb5c70a 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,4 @@ .idea/ vendor/ composer.lock -.vscode/ftp-sync.json +.vscode/ diff --git a/src/EventListener/ParseFrontendTemplateListener.php b/src/EventListener/ParseFrontendTemplateListener.php index 1a22ed4..a779f8f 100644 --- a/src/EventListener/ParseFrontendTemplateListener.php +++ b/src/EventListener/ParseFrontendTemplateListener.php @@ -27,8 +27,10 @@ public function __invoke(string $buffer, string $templateName, FrontendTemplate $GLOBALS['objPage'] = PageModel::findByPk($b->trail[0]); } } - $objIt = new InsertTags(); - $buffer = $objIt->replace($buffer, true); + + //leaving it in for now, but has been made obsolete according to comment here: https://github.com/contao/contao/pull/3622#issuecomment-971806487 + //$objIt = new InsertTags(); + //$buffer = $objIt->replace($buffer, true); } return $buffer;