From: Antoine Musso Date: Wed, 8 Feb 2012 12:16:32 +0000 (+0000) Subject: align variables / enhance comment X-Git-Tag: 1.31.0-rc.0~24870 X-Git-Url: http://git.cyclocoop.org/%7B%24admin_url%7Dmembres/cotisations/gestion/rappel_supprimer.php?a=commitdiff_plain;h=906c10055d2388150461cac36800cbeb036c5fa2;p=lhc%2Fweb%2Fwiklou.git align variables / enhance comment --- diff --git a/includes/filerepo/FileRepo.php b/includes/filerepo/FileRepo.php index 828bc921d0..203a956305 100644 --- a/includes/filerepo/FileRepo.php +++ b/includes/filerepo/FileRepo.php @@ -768,7 +768,9 @@ class FileRepo { /** * Pick a random name in the temp zone and store a file to it. - * Returns a FileRepoStatus object with the URL in the value. + * Returns a FileRepoStatus object with the file Virtual URL in the value, + * file can later be disposed using FileRepo::freeTemp(). + * * * @param $originalName String: the base name of the file as specified * by the user. The file extension will be maintained. @@ -831,7 +833,7 @@ class FileRepo { /** * Remove a temporary file or mark it for garbage collection * - * @param $virtualUrl String: the virtual URL returned by storeTemp + * @param $virtualUrl String: the virtual URL returned by FileRepo::storeTemp() * @return Boolean: true on success, false on failure */ public function freeTemp( $virtualUrl ) { @@ -840,8 +842,8 @@ class FileRepo { wfDebug( __METHOD__.": Invalid temp virtual URL\n" ); return false; } - $path = $this->resolveVirtualUrl( $virtualUrl ); - $op = array( 'op' => 'delete', 'src' => $path ); + $path = $this->resolveVirtualUrl( $virtualUrl ); + $op = array( 'op' => 'delete', 'src' => $path ); $status = $this->backend->doOperation( $op ); return $status->isOK(); }