diff options
Diffstat (limited to 'themes/garland/template.php')
-rw-r--r-- | themes/garland/template.php | 16 |
1 files changed, 3 insertions, 13 deletions
diff --git a/themes/garland/template.php b/themes/garland/template.php index f40bebc11..0d06bb44e 100644 --- a/themes/garland/template.php +++ b/themes/garland/template.php @@ -53,11 +53,7 @@ function phptemplate_comment_wrapper($content, $node) { * Override or insert PHPTemplate variables into the templates. */ function phptemplate_preprocess_page(&$vars) { - if ($secondary = menu_secondary_local_tasks()) { - $output = '<span class="clear"></span>'; - $output .= "<ul class=\"tabs secondary\">\n". $secondary ."</ul>\n"; - $vars['tabs2'] = $output; - } + $vars['tabs2'] = menu_secondary_local_tasks(); // Hook into color.module if (module_exists('color')) { @@ -67,18 +63,12 @@ function phptemplate_preprocess_page(&$vars) { /** * Returns the rendered local tasks. The default implementation renders - * them as tabs. + * them as tabs. Overridden to split the secondary tasks. * * @ingroup themeable */ function phptemplate_menu_local_tasks() { - $output = ''; - - if ($primary = menu_primary_local_tasks()) { - $output .= "<ul class=\"tabs primary\">\n". $primary ."</ul>\n"; - } - - return $output; + return menu_primary_local_tasks(); } function phptemplate_comment_submitted($comment) { |