dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge "Convert various FormActions to OOUI"
[lhc/web/wiklou.git]
/
includes
/
filerepo
/
file
/
ForeignDBFile.php
diff --git
a/includes/filerepo/file/ForeignDBFile.php
b/includes/filerepo/file/ForeignDBFile.php
index
c041dea
..
f6f44e6
100644
(file)
--- a/
includes/filerepo/file/ForeignDBFile.php
+++ b/
includes/filerepo/file/ForeignDBFile.php
@@
-120,10
+120,10
@@
class ForeignDBFile extends LocalFile {
}
/**
}
/**
- * @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 ) {
global $wgLang;
if ( !$this->repo->fetchDescription ) {
@@
-136,7
+136,7
@@
class ForeignDBFile extends LocalFile {
return false;
}
return false;
}
- $touched = $this->repo->get
Slave
DB()->selectField(
+ $touched = $this->repo->get
Replica
DB()->selectField(
'page',
'page_touched',
[
'page',
'page_touched',
[
@@
-179,7
+179,7
@@
class ForeignDBFile extends LocalFile {
* @since 1.27
*/
public function getDescriptionShortUrl() {
* @since 1.27
*/
public function getDescriptionShortUrl() {
- $dbr = $this->repo->get
Slave
DB();
+ $dbr = $this->repo->get
Replica
DB();
$pageId = $dbr->selectField(
'page',
'page_id',
$pageId = $dbr->selectField(
'page',
'page_id',