From afe47fae3b5d4dbb4c209df698b72d4f2e716ad7 Mon Sep 17 00:00:00 2001 From: Anika Henke Date: Sun, 5 Dec 2010 13:01:15 +0000 Subject: made template functions more flexible * attention: incompatible to previous version! * introduced _tpl_action() (wrapper similar to tpl_action()) * improved discussion and user page functions * made them work independent from config * added full control to how the page links are built (with placeholders @ID@ and @USER@) * config option changes: removed 'discussNSreverse', renamed 'discussionNS' and 'userNS' to 'discussionPage' and 'userPage' --- main.php | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'main.php') diff --git a/main.php b/main.php index 05829d192..d47f8d359 100644 --- a/main.php +++ b/main.php @@ -66,9 +66,7 @@ $showTools = !tpl_getConf('hideTools') || ( tpl_getConf('hideTools') && $_SERVER echo ''; } tpl_action('admin', 1, 'li'); - if (tpl_getConf('userNS')) { - _tpl_userpage(tpl_getConf('userNS'),1,'li'); - } + _tpl_action('userpage', 1, 'li'); tpl_action('profile', 1, 'li'); tpl_action('login', 1, 'li'); ?> @@ -138,9 +136,7 @@ $showTools = !tpl_getConf('hideTools') || ( tpl_getConf('hideTools') && $_SERVER