use framework->template_dir for the template directory to support templates packaged like apps

This commit is contained in:
Ralf Becker 2010-06-09 10:54:22 +00:00
parent b5179882ab
commit 7e17d5f4ce

View File

@ -112,7 +112,7 @@
/* Here we include the settings hook file for the current template, if it exists.
This is not handled by the hooks class and is only valid if not using xml-rpc.
*/
$tmpl_settings = EGW_TEMPLATE_DIR . '/hook_settings.inc.php';
$tmpl_settings = EGW_SERVER_ROOT.$GLOBALS['egw']->framework->template_dir.'/hook_settings.inc.php';
if($this->appname == 'preferences' && file_exists($tmpl_settings))
{
include($tmpl_settings);