Index: trunk/phase3/includes/filerepo/FileRepo.php |
— | — | @@ -768,8 +768,10 @@ |
769 | 769 | |
770 | 770 | /** |
771 | 771 | * Pick a random name in the temp zone and store a file to it. |
772 | | - * Returns a FileRepoStatus object with the URL in the value. |
| 772 | + * Returns a FileRepoStatus object with the file Virtual URL in the value, |
| 773 | + * file can later be disposed using FileRepo::freeTemp(). |
773 | 774 | * |
| 775 | + * |
774 | 776 | * @param $originalName String: the base name of the file as specified |
775 | 777 | * by the user. The file extension will be maintained. |
776 | 778 | * @param $srcPath String: the current location of the file. |
— | — | @@ -831,7 +833,7 @@ |
832 | 834 | /** |
833 | 835 | * Remove a temporary file or mark it for garbage collection |
834 | 836 | * |
835 | | - * @param $virtualUrl String: the virtual URL returned by storeTemp |
| 837 | + * @param $virtualUrl String: the virtual URL returned by FileRepo::storeTemp() |
836 | 838 | * @return Boolean: true on success, false on failure |
837 | 839 | */ |
838 | 840 | public function freeTemp( $virtualUrl ) { |
— | — | @@ -840,8 +842,8 @@ |
841 | 843 | wfDebug( __METHOD__.": Invalid temp virtual URL\n" ); |
842 | 844 | return false; |
843 | 845 | } |
844 | | - $path = $this->resolveVirtualUrl( $virtualUrl ); |
845 | | - $op = array( 'op' => 'delete', 'src' => $path ); |
| 846 | + $path = $this->resolveVirtualUrl( $virtualUrl ); |
| 847 | + $op = array( 'op' => 'delete', 'src' => $path ); |
846 | 848 | $status = $this->backend->doOperation( $op ); |
847 | 849 | return $status->isOK(); |
848 | 850 | } |