Make ArchivedFile load title regardless of how constructed.
authorBrian Wolff <bawolff+wn@gmail.com>
Thu, 18 Sep 2014 19:11:42 +0000 (16:11 -0300)
committerBrian Wolff <bawolff+wn@gmail.com>
Thu, 18 Sep 2014 19:14:59 +0000 (16:14 -0300)
commitcf6b50fa13ba3c2744593eda625f4492929b89d9
treecb9e7dd563f604fc29fc583739475062de28cdc3
parent07f60f25af217a3c619ee8ea270707188bc41d77
Make ArchivedFile load title regardless of how constructed.

If someone did $f = new ArchivedFile( null, 10 ); (ie load an
archived file based on id), $f->getTitle() would always return
false. We should populate the title when loading properties
from the db to prevent this. Having $f->getTitle() return
false only sometimes is sketchy.

Change-Id: Ia9d25d6b159aa45696c318d8c4a8ef0adffb3e47
includes/filerepo/file/ArchivedFile.php