wfLocalFile returns a LocalFile (or null) not a File
authorReedy <reedy@wikimedia.org>
Sat, 7 Apr 2012 20:51:53 +0000 (21:51 +0100)
committerReedy <reedy@wikimedia.org>
Sat, 7 Apr 2012 20:51:53 +0000 (21:51 +0100)
Change-Id: Ib016f16c1b5528d9f6af4189ca8459cacb54cf10

includes/GlobalFunctions.php

index 517f70d..7237b53 100644 (file)
@@ -3603,7 +3603,7 @@ function wfFindFile( $title, $options = array() ) {
  * Returns a valid placeholder object if the file does not exist.
  *
  * @param $title Title|String
- * @return File|null A File, or null if passed an invalid Title
+ * @return LocalFile|null A File, or null if passed an invalid Title
  */
 function wfLocalFile( $title ) {
        return RepoGroup::singleton()->getLocalRepo()->newFile( $title );