SF.net SVN: postfixadmin:[768] trunk
Brought to you by:
christian_boltz,
gingerdog
From: <seb...@us...> - 2009-11-10 09:09:44
|
Revision: 768 http://postfixadmin.svn.sourceforge.net/postfixadmin/?rev=768&view=rev Author: sebastian2009 Date: 2009-11-10 09:09:36 +0000 (Tue, 10 Nov 2009) Log Message: ----------- - small fix to smarty.inc.php. Really use our compile and templates directory - Fix in menu.tpl to honor "show fetchmail tab" Modified Paths: -------------- trunk/smarty.inc.php trunk/templates/menu.tpl Modified: trunk/smarty.inc.php =================================================================== --- trunk/smarty.inc.php 2009-11-09 14:42:14 UTC (rev 767) +++ trunk/smarty.inc.php 2009-11-10 09:09:36 UTC (rev 768) @@ -5,9 +5,9 @@ //$smarty->debugging = true; -$smarty->template_dir = $incpath.'/'.$smarty->template_dir; -$smarty->compile_dir = $incpath.'/'.$smarty->compile_dir; -$smarty->config_dir = $incpath.'/'.$smarty->config_dir; +$smarty->template_dir = $incpath.'/templates'; +$smarty->compile_dir = $incpath.'/templates_c'; +$smarty->config_dir = $incpath.'/'.$smarty->config_dir; $CONF['theme_css'] = $CONF['postfix_admin_url'].'/'.htmlentities($CONF['theme_css']); $CONF['theme_logo'] = $CONF['postfix_admin_url'].'/'.htmlentities($CONF['theme_logo']); @@ -32,8 +32,7 @@ } if (file_exists ($CONF ['postfix_admin_path'].'/templates/'.$motd_file)) $smarty->assign ('motd_file', $motd_file); -?> -<?php + function select_options ($aValues, $aSelected) { $ret_val = ''; @@ -53,4 +52,4 @@ else {$ret_val = $aSize; } return $ret_val; } -php?> \ No newline at end of file +?> Modified: trunk/templates/menu.tpl =================================================================== --- trunk/templates/menu.tpl 2009-11-09 14:42:14 UTC (rev 767) +++ trunk/templates/menu.tpl 2009-11-10 09:09:36 UTC (rev 768) @@ -46,6 +46,7 @@ </li> {/strip} {* fetchmail *} +{if $CONF.fetchmail} {strip} <li><a target="_top" href="{#url_fetchmail#}">{$PALANG.pMenu_fetchmail}</a> <ul> @@ -54,6 +55,7 @@ </ul> </li> {/strip} +{/if} {* sendmail *} {strip} <li><a target="_top" href="{#url_sendmail#}">{$PALANG.pMenu_sendmail}</a> @@ -105,4 +107,4 @@ window.attachEvent("onload", sfHover); // ]]> </script> -{/literal} \ No newline at end of file +{/literal} This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |