Index: trunk/phase3/includes/filerepo/UnregisteredLocalFile.php |
— | — | @@ -32,7 +32,7 @@ |
33 | 33 | * @return UnregisteredLocalFile |
34 | 34 | */ |
35 | 35 | static function newFromPath( $path, $mime ) { |
36 | | - return new UnregisteredLocalFile( false, false, $path, $mime ); |
| 36 | + return new self( false, false, $path, $mime ); |
37 | 37 | } |
38 | 38 | |
39 | 39 | /** |
— | — | @@ -41,10 +41,13 @@ |
42 | 42 | * @return UnregisteredLocalFile |
43 | 43 | */ |
44 | 44 | static function newFromTitle( $title, $repo ) { |
45 | | - return new UnregisteredLocalFile( $title, $repo, false, false ); |
| 45 | + return new self( $title, $repo, false, false ); |
46 | 46 | } |
47 | 47 | |
48 | 48 | /** |
| 49 | + * Create an UnregisteredLocalFile based on a path or a (title,repo) pair. |
| 50 | + * A FileRepo object is not required here, unlike most other File classes. |
| 51 | + * |
49 | 52 | * @throws MWException |
50 | 53 | * @param $title Title|false |
51 | 54 | * @param $repo FSRepo |