From 23482415cb7a52884c43bfca198131ebbf7c18a8 Mon Sep 17 00:00:00 2001 From: Tim Starling Date: Sun, 12 Nov 2006 10:50:01 +0000 Subject: [PATCH] allow URL purging --- maintenance/purgeList.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/maintenance/purgeList.php b/maintenance/purgeList.php index 615d16b0c4..9bf7c1bfcd 100644 --- a/maintenance/purgeList.php +++ b/maintenance/purgeList.php @@ -11,7 +11,9 @@ $urls = array(); while( !feof( $stdin ) ) { $page = trim( fgets( $stdin ) ); - if( $page !== '' ) { + if ( substr( $page, 0, 7 ) == 'http://' ) { + $urls[] = $page; + } elseif( $page !== '' ) { $title = Title::newFromText( $page ); if( $title ) { $url = $title->getFullUrl(); @@ -29,4 +31,4 @@ $u->doUpdate(); echo "Done!\n"; -?> \ No newline at end of file +?> -- 2.20.1