Actually make exists() useful here. Because of the order in which things are loaded...
authorChad Horohoe <demon@users.mediawiki.org>
Thu, 4 Dec 2008 21:21:48 +0000 (21:21 +0000)
committerChad Horohoe <demon@users.mediawiki.org>
Thu, 4 Dec 2008 21:21:48 +0000 (21:21 +0000)
commit7b6bfe0c5d16e890984f5bd15ce7024e58f87c31
tree4da1924b63d3d52d8ce73dc02ce42b22293ff948
parent87c34da6f85166b7ea8800286ff6c9de900ae598
Actually make exists() useful here. Because of the order in which things are loaded, we've actually _already_ loaded the metadata prior to calling the constructor. It's safe to assume when making a new ForeignAPIFile that we'll want it to exist at that point. However, we'll default to false as it's safer to assume it doesn't exist and skip ourselves some Http requests. You should probably only be using newFromTitle() anyway :)
includes/filerepo/ForeignAPIFile.php