/** @var LocalRepo $repo */
$repo = $file->getRepo();
- $dbr = $repo->getSlaveDB();
+ $dbr = $repo->getReplicaDB();
$res = $dbr->select(
[ 'page', 'categorylinks' ],
return TitleArray::newFromResult( $res );
}
+
+ /**
+ * @since 1.28
+ * @return string
+ */
+ public function getWikiDisplayName() {
+ return $this->getFile()->getRepo()->getDisplayName();
+ }
+
+ /**
+ * @since 1.28
+ * @return string
+ */
+ public function getSourceURL() {
+ return $this->getFile()->getDescriptionUrl();
+ }
}