diff options
author | Pierre Schmitz <pierre@archlinux.de> | 2014-12-27 15:41:37 +0100 |
---|---|---|
committer | Pierre Schmitz <pierre@archlinux.de> | 2014-12-31 11:43:28 +0100 |
commit | c1f9b1f7b1b77776192048005dcc66dcf3df2bfb (patch) | |
tree | 2b38796e738dd74cb42ecd9bfd151803108386bc /maintenance/purgeList.php | |
parent | b88ab0086858470dd1f644e64cb4e4f62bb2be9b (diff) |
Update to MediaWiki 1.24.1
Diffstat (limited to 'maintenance/purgeList.php')
-rw-r--r-- | maintenance/purgeList.php | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/maintenance/purgeList.php b/maintenance/purgeList.php index 2f895201..2e196309 100644 --- a/maintenance/purgeList.php +++ b/maintenance/purgeList.php @@ -51,7 +51,9 @@ class PurgeList extends Maintenance { $this->output( "Done!\n" ); } - /** Purge URL coming from stdin */ + /** + * Purge URL coming from stdin + */ private function doPurge() { $stdin = $this->getStdin(); $urls = array(); @@ -78,7 +80,11 @@ class PurgeList extends Maintenance { $this->sendPurgeRequest( $urls ); } - /** Purge a namespace or all pages */ + /** + * Purge a namespace or all pages + * + * @param int|bool $namespace + */ private function purgeNamespace( $namespace = false ) { $dbr = wfGetDB( DB_SLAVE ); $startId = 0; @@ -114,7 +120,7 @@ class PurgeList extends Maintenance { /** * Helper to purge an array of $urls - * @param $urls array List of URLS to purge from squids + * @param array $urls List of URLS to purge from squids */ private function sendPurgeRequest( $urls ) { if ( $this->hasOption( 'delay' ) ) { @@ -135,7 +141,6 @@ class PurgeList extends Maintenance { $u->doUpdate(); } } - } $maintClass = "PurgeList"; |