Index: trunk/phase3/resources/mediawiki.util/mediawiki.util.js |
— | — | @@ -292,8 +292,8 @@ |
293 | 293 | |
294 | 294 | // Also check for the title in related namespaces ? |
295 | 295 | if ( typeof alsoRelated !== 'undefined' && alsoRelated === true ) { |
296 | | - var contentTabLink = wgServer + $( '#ca-talk' ).prev( 'li' ).find( 'a:first' ).attr( 'href' ); |
297 | | - isRelatedToMainpage = contentTabLink === mw.util.wikiGetlink( mw.config.get( 'wgMainPageTitle' ) ); |
| 296 | + var tabLink = mw.config.get( 'wgServer' ) + $( '#ca-talk' ).prev().find( 'a:first' ).attr( 'href' ); |
| 297 | + isRelatedToMainpage = tabLink === mw.util.wikiGetlink( mw.config.get( 'wgMainPageTitle' ) ); |
298 | 298 | |
299 | 299 | return isRelatedToMainpage || isTheMainPage; |
300 | 300 | } |