}
/**
- * @param bool|Language $lang Optional language to fetch description in.
- * @return string
+ * @param Language|null $lang Optional language to fetch description in.
+ * @return string|false
*/
- function getDescriptionText( $lang = false ) {
+ function getDescriptionText( $lang = null ) {
global $wgLang;
if ( !$this->repo->fetchDescription ) {
return false;
}
- $touched = $this->repo->getSlaveDB()->selectField(
+ $touched = $this->repo->getReplicaDB()->selectField(
'page',
'page_touched',
[
* @since 1.27
*/
public function getDescriptionShortUrl() {
- $dbr = $this->repo->getSlaveDB();
+ $dbr = $this->repo->getReplicaDB();
$pageId = $dbr->selectField(
'page',
'page_id',