From: Tim Starling Date: Sun, 12 Nov 2006 10:50:01 +0000 (+0000) Subject: allow URL purging X-Git-Tag: 1.31.0-rc.0~55212 X-Git-Url: http://git.cyclocoop.org/%7B%24admin_url%7Dmembres/modifier.php?a=commitdiff_plain;h=23482415cb7a52884c43bfca198131ebbf7c18a8;p=lhc%2Fweb%2Fwiklou.git allow URL purging --- 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 +?>