Skip to content

Commit

Permalink
User's template extension must not be included in admin pages.
Browse files Browse the repository at this point in the history
git-svn-id: http://piwigo.org/svn/trunk@3169 68402e56-0260-453c-a942-63ccdbb3a9ee
  • Loading branch information
patdenice committed Mar 3, 2009
1 parent 781ec8d commit 9045f11
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/template.class.php
Expand Up @@ -84,7 +84,7 @@ function Template($root = ".", $theme= "")

$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);
Expand Down

0 comments on commit 9045f11

Please sign in to comment.