don't overwrite $item['single-id'] in makeListItem in SkinTemplate
authorMatmaRex <matma.rex@gmail.com>
Fri, 5 Oct 2012 18:09:18 +0000 (20:09 +0200)
committerMatmaRex <matma.rex@gmail.com>
Fri, 5 Oct 2012 18:14:52 +0000 (20:14 +0200)
This makes it possible to use it with links that are supposed to use
custom ids, but stock tooltips.

Change-Id: I2e3ed92bd23dbaebf0c404979343b463c8c357cf

includes/SkinTemplate.php

index c654747..f8f29bc 100644 (file)
@@ -1748,7 +1748,7 @@ abstract class BaseTemplate extends QuickTemplate {
                        foreach ( array( 'id', 'class', 'active', 'tag' ) as $k ) {
                                unset( $link[$k] );
                        }
-                       if ( isset( $item['id'] ) ) {
+                       if ( isset( $item['id'] ) && !isset( $item['single-id'] ) ) {
                                // The id goes on the <li> not on the <a> for single links
                                // but makeSidebarLink still needs to know what id to use when
                                // generating tooltips and accesskeys.