r76538 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r76537‎ | r76538 | r76539 >
Date:19:53, 11 November 2010
Author:ialex
Status:ok
Tags:
Comment:
WikiError -> FileRepoStatus in doc
Modified paths:
  • /trunk/extensions/NSFileRepo/NSFileRepo_body.php (modified) (history)

Diff [purge]

Index: trunk/extensions/NSFileRepo/NSFileRepo_body.php
@@ -166,10 +166,8 @@
167167 * This function overrides the LocalFile because the archive name should not contain the namespace in the
168168 * filename. Otherwise the function would have worked. This only affects reuploads
169169 *
170 - * Move or copy a file to its public location. If a file exists at the
171 - * destination, move it to an archive. Returns the archive name on success
172 - * or an empty string if it was a new file, and a wikitext-formatted
173 - * WikiError object on failure.
 170+ * Move or copy a file to its public location. Returns a FileRepoStatus object.
 171+ * On success, the value contains "new" or "archived", to indicate whether the file was new with that name.
174172 *
175173 * The archive name should be passed through to recordUpload for database
176174 * registration.

Status & tagging log