Index: trunk/phase3/skins/Vector.php |
— | — | @@ -365,8 +365,14 @@ |
366 | 366 | <div id="p-views" class="vectorTabs<?php if ( count( $this->data['view_urls'] ) == 0 ) echo ' emptyPortlet'; ?>"> |
367 | 367 | <h5><?php $this->msg('views') ?></h5> |
368 | 368 | <ul<?php $this->html('userlangattributes') ?>> |
369 | | - <?php foreach ( $this->data['view_urls'] as $link ): ?> |
370 | | - <li<?php echo $link['attributes'] ?>><span><a href="<?php echo htmlspecialchars( $link['href'] ) ?>" <?php echo $link['key'] ?>><?php echo (array_key_exists('img',$link) ? '<img src="'.$link['img'].'" alt="'.$link['text'].'" />' : htmlspecialchars( $link['text'] ) ) ?></a></span></li> |
| 369 | + <?php |
| 370 | + foreach ( $this->data['view_urls'] as $link ): ?> |
| 371 | + <li<?php echo $link['attributes'] ?>><span><a href="<?php echo htmlspecialchars( $link['href'] ) ?>" <?php echo $link['key'] ?>><?php |
| 372 | + // $link['text'] can be undefined - bug 27764 |
| 373 | + if ( array_key_exists( 'text', $link ) ) { |
| 374 | + echo array_key_exists( 'img', $link ) ? '<img src="' . $link['img'] . '" alt="' . $link['text'] . '" />' : htmlspecialchars( $link['text'] ); |
| 375 | + } |
| 376 | + ?></a></span></li> |
371 | 377 | <?php endforeach; ?> |
372 | 378 | </ul> |
373 | 379 | </div> |