Index: trunk/phase3/includes/FileRevertForm.php |
— | — | @@ -17,7 +17,7 @@ |
18 | 18 | /** |
19 | 19 | * Constructor |
20 | 20 | * |
21 | | - * @param File $file File we're reverting |
| 21 | + * @param $file File we're reverting |
22 | 22 | */ |
23 | 23 | public function __construct( $file ) { |
24 | 24 | $this->title = $file->getTitle(); |
Index: trunk/phase3/includes/FileDeleteForm.php |
— | — | @@ -17,7 +17,7 @@ |
18 | 18 | /** |
19 | 19 | * Constructor |
20 | 20 | * |
21 | | - * @param File $file File we're deleting |
| 21 | + * @param $file File object we're deleting |
22 | 22 | */ |
23 | 23 | public function __construct( $file ) { |
24 | 24 | $this->title = $file->getTitle(); |
— | — | @@ -90,6 +90,15 @@ |
91 | 91 | $this->showLogEntries(); |
92 | 92 | } |
93 | 93 | |
| 94 | + /** |
| 95 | + * Really delete the file |
| 96 | + * |
| 97 | + * @param $title Title object |
| 98 | + * @param $file File object |
| 99 | + * @param $oldimage String: archive name |
| 100 | + * @param $reason String: reason of the deletion |
| 101 | + * @param $suppress Boolean: whether to mark all deleted versions as restricted |
| 102 | + */ |
94 | 103 | public static function doDelete( &$title, &$file, &$oldimage, $reason, $suppress ) { |
95 | 104 | global $wgUser; |
96 | 105 | $article = null; |
— | — | @@ -226,8 +235,8 @@ |
227 | 236 | * showing an appropriate message depending upon whether |
228 | 237 | * it's a current file or an old version |
229 | 238 | * |
230 | | - * @param string $message Message base |
231 | | - * @return string |
| 239 | + * @param $message String: message base |
| 240 | + * @return String |
232 | 241 | */ |
233 | 242 | private function prepareMessage( $message ) { |
234 | 243 | global $wgLang; |