From b3bba72290ff947e72e3ed24e2bc1770c7e162ef Mon Sep 17 00:00:00 2001
From: Helmut Hummel <helmut.hummel@typo3.org>
Date: Fri, 15 Jun 2012 22:16:31 +0200
Subject: [PATCH] [BUGFIX] Remove bogus template in template analyzer

Since the implementation of #22169 a bogus template icon
appeared in the template analyzer.
This is because the call to processTemplate was accidentally
moved outside the if construct which checks if there are
ext_typoscript_*.txt files for the extensions.

Change-Id: Ib3de6000df411ee4cb3bbd88f38514d5fcc6653e
Fixes: #38104
Releases: 4.6, 4.7, 6.0
Reviewed-on: http://review.typo3.org/12113
Reviewed-by: Philipp Gampe
Tested-by: Philipp Gampe
Reviewed-by: Susanne Moog
Tested-by: Susanne Moog
---
 t3lib/class.t3lib_tstemplate.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/t3lib/class.t3lib_tstemplate.php b/t3lib/class.t3lib_tstemplate.php
index f3e739a5fc30..598caa3fa7c5 100644
--- a/t3lib/class.t3lib_tstemplate.php
+++ b/t3lib/class.t3lib_tstemplate.php
@@ -666,8 +666,8 @@ class t3lib_TStemplate {
 					'uid' => $mExtKey
 				);
 				$subrow = $this->prependStaticExtra($subrow);
+				$this->processTemplate($subrow, $idList . ',ext_' . $mExtKey, $pid, 'ext_' . $mExtKey, $templateID);
 			}
-			$this->processTemplate($subrow, $idList . ',ext_' . $mExtKey, $pid, 'ext_' . $mExtKey, $templateID);
 		}
 	}
 
-- 
GitLab