r114209 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r114208‎ | r114209 | r114210 >
Date:22:49, 19 March 2012
Author:jeroendedauw
Status:reverted
Tags:gerritmigration 
Comment:
fix subpage linking
Modified paths:
  • /trunk/phase3/includes/specials/SpecialCachedPage.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/specials/SpecialCachedPage.php
@@ -108,8 +108,12 @@
109109 unset( $refreshArgs['title'] );
110110 $refreshArgs['action'] = 'purge';
111111
 112+ $subPage = $this->getTitle()->getFullText();
 113+ $subPage = explode( '/', $subPage, 2 );
 114+ $subPage = count( $subPage ) > 1 ? $subPage[1] : false;
 115+
112116 $refreshLink = Linker::link(
113 - $this->getTitle( $this->getTitle()->getSubpageText() ),
 117+ $this->getTitle( $subPage ),
114118 $this->msg( 'cachedspecial-refresh-now' )->escaped(),
115119 array(),
116120 $refreshArgs

Follow-up revisions

RevisionCommit summaryAuthorDate
r114326Revert r114067, r114071, r114075, r114079, r114081, r114082, r114084, r114086......catrope23:03, 20 March 2012

Status & tagging log