From ac1d4a70766794863b270599b80d753c9457dd9a Mon Sep 17 00:00:00 2001 From: Ian Date: Wed, 21 May 2014 15:46:15 +0200 Subject: [PATCH] revert part of 7474f78 and fix the order to prevent wp themes engine yes to be included to array $templates References #165 7474f78 38204c4 --- include/admin/templates.inc.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/admin/templates.inc.php b/include/admin/templates.inc.php index 9f1e268c..f4be9b48 100644 --- a/include/admin/templates.inc.php +++ b/include/admin/templates.inc.php @@ -175,6 +175,10 @@ ksort($stack); foreach ($stack as $theme => $info) { + /* Sorry, but we don't display engines */ + if ( strtolower($info['engine']) == 'yes') { + continue; + } $data['templates'][$theme]['info'] = $info; foreach(array('', '_backend') as $backendId) {