From 776812e507f879656797c3691cdff928fcb68d0e Mon Sep 17 00:00:00 2001 From: patdenice Date: Tue, 3 Mar 2009 22:39:08 +0000 Subject: [PATCH] merge r3169 from trunk to branch 2.0 User's template extension must not be included in admin pages. git-svn-id: http://piwigo.org/svn/branches/2.0@3170 68402e56-0260-453c-a942-63ccdbb3a9ee --- include/template.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/template.class.php b/include/template.class.php index 7f90d5c7c..386f3123a 100644 --- a/include/template.class.php +++ b/include/template.class.php @@ -84,7 +84,7 @@ class Template { $this->set_template_dir($root); - if (isset($conf['extents_for_templates'])) + if (!defined('IN_ADMIN') and isset($conf['extents_for_templates'])) { $tpl_extents = unserialize($conf['extents_for_templates']); $this->set_extents($tpl_extents, './template-extension/', true);