Commit 60bbe6f988b89eee9d153065ff655f143dd4cf46
1 parent
27787bca
Make the browse by document type work from anywhere in browse.
git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@4661 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
1 changed file
with
5 additions
and
2 deletions
templates/kt3/portlets/browsemodes_portlet.smarty
| ... | ... | @@ -3,7 +3,10 @@ |
| 3 | 3 | <li>{if ($sModeKey == $current_action)} |
| 4 | 4 | <strong>{$sModeName.name}</strong> |
| 5 | 5 | {else} |
| 6 | - <a href="{$smarty.server.PHP_SELF}{if ($sModeName.target != null)}?action={$sModeName.target}{/if}">{$sModeName.name}</a> | |
| 6 | + {if ($sModeName.target != null)} <a href="{php}require_once(KT_LIB_DIR . '/browse/browseutil.inc.php'); print KTBrowseUtil::getBrowseBaseUrl(){/php}?action={$sModeName.target}">{$sModeName.name}</a> | |
| 7 | + {else} | |
| 8 | + {$sModeName.name} | |
| 9 | + {/if} | |
| 7 | 10 | {/if} |
| 8 | 11 | {/foreach} |
| 9 | -</ul> | |
| 10 | 12 | \ No newline at end of file |
| 13 | +</ul> | ... | ... |