X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=maintenance%2FpruneFileCache.php;h=8e6978d5626eadb50f5b2ee431040669782c17de;hb=e2a7988178698b4369c7963d20610ee622db3ee7;hp=01bd09a244419587012bfe45285735211ff80df7;hpb=843761a1a4e8aedfa64163e71953319ff08f5f1e;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/pruneFileCache.php b/maintenance/pruneFileCache.php index 01bd09a244..8e6978d562 100644 --- a/maintenance/pruneFileCache.php +++ b/maintenance/pruneFileCache.php @@ -34,7 +34,7 @@ class PruneFileCache extends Maintenance { public function __construct() { parent::__construct(); - $this->mDescription = "Build file cache for content pages"; + $this->addDescription( 'Build file cache for content pages' ); $this->addOption( 'agedays', 'How many days old files must be in order to delete', true, true ); $this->addOption( 'subdir', 'Prune one $wgFileCacheDirectory subdirectory name', false, true ); } @@ -75,8 +75,8 @@ class PruneFileCache extends Maintenance { } /** - * @param $dir string - * @param $report string|bool Use 'report' to report the directories being scanned + * @param string $dir + * @param string|bool $report Use 'report' to report the directories being scanned */ protected function prune_directory( $dir, $report = false ) { $tsNow = time();