User "Krinkle" posted a comment on MediaWiki.r87212. Full URL: http://www.mediawiki.org/wiki/Special:Code/MediaWiki/87212#c16652 Commit summary:
Added wgIsMainPage (Title->isMainPage) to mw.config * Instead of ugly javascript construction to compare href-attributes or re-constructing proper pagenames, let's use Title->isMainPage which does this much better * Kept function for compatibility. mw.util.isMainPage() was never released, should probably be removed before 1.18 branch point. Comment: That's correct. However this method was never released in any stable release, or any beta or release-candidate. So compatibility should not be an issue as much. Besides, the isRelatedToMainpage was buggy at best, and the way I did it wasn't very pretty either. Nor was it requested via BugZilla, if you think such functionality would be useful, feel free to open a ticket and be sure to refer to this revision and leave an example usecase as well :). Thanks! _______________________________________________ MediaWiki-CodeReview mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/mediawiki-codereview
