r23185 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r23184‎ | r23185 | r23186 >
Date:23:07, 21 June 2007
Author:aaron
Status:old
Tags:
Comment:
*Update per r23184
Modified paths:
  • /trunk/extensions/FlaggedRevs/FlaggedRevs.php (modified) (history)

Diff [purge]

Index: trunk/extensions/FlaggedRevs/FlaggedRevs.php
@@ -957,7 +957,7 @@
958958 global $wgHooks;
959959 // Are we using the popular cite extension?
960960 if( in_array('wfSpecialCiteNav',$wgHooks['SkinTemplateBuildNavUrlsNav_urlsAfterPermalink']) ) {
961 - if( $sktmp->mTitle->getNamespace() === NS_MAIN && $revid !== 0 ) {
 961+ if( $skintemplate->mTitle->isContentPage() && $revid !== 0 ) {
962962 $nav_urls['cite'] = array(
963963 'text' => wfMsg( 'cite_article_link' ),
964964 'href' => $sktmp->makeSpecialUrl( 'Cite', "page=" . wfUrlencode( "{$sktmp->thispage}" ) . "&id={$tfrev->fr_rev_id}" )

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r23184Rather than checking if the page is in the main namespace, check whether it's...amidaniel23:03, 21 June 2007

Status & tagging log