r90976 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r90975‎ | r90976 | r90977 >
Date:16:23, 28 June 2011
Author:ankitgarg833
Status:deferred
Tags:
Comment:
Modified paths:
  • /trunk/extensions/PageSchemas/specials/GeneratePages.php (modified) (history)

Diff [purge]

Index: trunk/extensions/PageSchemas/specials/GeneratePages.php
@@ -44,7 +44,9 @@
4545 $page_id_cat = $row[0];
4646 if( Title::newFromId($page_id_cat)->getNamespace() == NS_CATEGORY){
4747 $cat_text = Title::newFromId($page_id_cat)->getText();
48 - $text .= '<a href="https://www.mediawiki.org/index.php/Special:GeneratePages/'.$cat_text.'">'.$cat_text.'</a> <br />';
 48+ $generatePagesPage = SpecialPage::getTitleFor( 'GeneratePages' );
 49+ $url = $generatePagesPage ->getFullURL() . '/' . $cat_text;
 50+ $text .= '<a href='.$generatePagesPage.'</a> <br />';
4951 }
5052 }
5153 }

Status & tagging log