Index: trunk/extensions/PageSchemas/specials/GeneratePages.php |
— | — | @@ -44,7 +44,9 @@ |
45 | 45 | $page_id_cat = $row[0]; |
46 | 46 | if( Title::newFromId($page_id_cat)->getNamespace() == NS_CATEGORY){ |
47 | 47 | $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 />'; |
49 | 51 | } |
50 | 52 | } |
51 | 53 | } |