Skip to content

Commit

Permalink
bug:2797 added !defined('IN_ADMIN') to prefilter_local_css to exlude …
Browse files Browse the repository at this point in the history
…the local css files from the administration part

git-svn-id: http://piwigo.org/svn/trunk@19696 68402e56-0260-453c-a942-63ccdbb3a9ee
  • Loading branch information
flop25 committed Dec 31, 2012
1 parent 522335c commit 2374789
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion include/template.class.php
Expand Up @@ -108,7 +108,10 @@ function Template($root = ".", $theme= "", $path = "template")
if ( !empty($theme) )
{
$this->set_theme($root, $theme, $path);
$this->set_prefilter( 'header', array('Template', 'prefilter_local_css') );
if (!defined('IN_ADMIN'))
{
$this->set_prefilter( 'header', array('Template', 'prefilter_local_css') );
}
}
else
$this->set_template_dir($root);
Expand Down

0 comments on commit 2374789

Please sign in to comment.