From b5c3bece72c9d091d6e42e0312db43a74ceee7f2 Mon Sep 17 00:00:00 2001 From: Trevor Parscal Date: Wed, 31 Mar 2010 06:48:47 +0000 Subject: [PATCH] Ensures empty UL elements are never included in output by testing if menus have anything in them before rendering the containing UL elements. Addresses issues noted in bug #23015 --- skins/Vector.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/skins/Vector.php b/skins/Vector.php index 538c89ce0e..57f37dddd4 100644 --- a/skins/Vector.php +++ b/skins/Vector.php @@ -694,11 +694,13 @@ class VectorTemplate extends QuickTemplate { ?>
msg('namespaces') ?>
+ data['namespace_urls'] ) ): ?> html('userlangattributes') ?>> data['namespace_urls'] as $key => $link ): ?>
  • >>
  • +
    data['variant_urls'] ) == 0 ) echo ' emptyPortlet'; ?>">
    msg('variants') ?>
    msg('views') ?>
    + data['view_urls'] ) ): ?> html('userlangattributes') ?>> data['view_urls'] as $key => $link ): ?> >>' : ''.htmlspecialchars( $link['text'] ).'') ?> +
    data['action_urls'] ) == 0 ) echo ' emptyPortlet'; ?>">
    msg('actions') ?>
    msg('personaltools') ?>
    + data['personal_urls'] ) ): ?> html('userlangattributes') ?>> data['personal_urls'] as $key => $item): ?>
  • > class="">
  • +