http://www.mediawiki.org/wiki/Special:Code/MediaWiki/95014
Revision: 95014
Author: catrope
Date: 2011-08-19 17:20:35 +0000 (Fri, 19 Aug 2011)
Log Message:
-----------
Use getInternalUrl() instead of getFullUrl() in purgeList.php . This was
potentially a serious bug if $wgServer differed from $wgInternalServer in
command-line mode (this is not the case on WMF, but might be the case on
3rd-party installs)
Modified Paths:
--------------
trunk/phase3/maintenance/purgeList.php
Modified: trunk/phase3/maintenance/purgeList.php
===================================================================
--- trunk/phase3/maintenance/purgeList.php 2011-08-19 16:57:55 UTC (rev
95013)
+++ trunk/phase3/maintenance/purgeList.php 2011-08-19 17:20:35 UTC (rev
95014)
@@ -52,7 +52,7 @@
} elseif ( $page !== '' ) {
$title = Title::newFromText( $page );
if ( $title ) {
- $url = $title->getFullUrl();
+ $url = $title->getInternalUrl();
$this->output( "$url\n" );
$urls[] = $url;
if ( $this->getOption( 'purge' ) ) {
@@ -105,7 +105,7 @@
$urls = array();
foreach( $result as $row ) {
$title = Title::makeTitle(
$row->page_namespace, $row->page_title );
- $url = $title->getFullUrl();
+ $url = $title->getInternalUrl();
$urls[] = $url;
}
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs