use $file->getName() instead of $title->getDBkey()

that way we always get the right capitalization
with shared repositories

(also consitently use getDBKey everywhere)

Change-Id: I094cd0f9570986ffdc3f661ca9beb1b489f50183
Merge "use $file->getName() instead of $title->getDBkey()"