/**
* @throws MWException
* @param $row
- * @return File
+ * @return LocalFile
*/
function newFileFromRow( $row ) {
if ( isset( $row->img_name ) ) {
public static function getHashFromKey( $key ) {
return strtok( $key, '.' );
}
-
+
/**
* Checks if there is a redirect named as $title
*
}
}
-
/**
* Function link Title::getArticleID().
* We can't say Title object, what database it should use, so we duplicate that function here.
$res = $dbr->select(
'image',
LocalFile::selectFields(),
- array( 'img_sha1' => $hash )
+ array( 'img_sha1' => $hash ),
+ __METHOD__,
+ array( 'ORDER BY' => 'img_name' )
);
$result = array();