User's template extension must not be included in admin pages.

git-svn-id: http://piwigo.org/svn/trunk@3169 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
patdenice
2009-03-03 22:37:14 +00:00
parent 781ec8d7c4
commit 9045f11c70
+1 -1
View File
@@ -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);