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 "Fix PhanTypeInvalidLeftOperand in Language.php"
[lhc/web/wiklou.git]
/
maintenance
/
fetchText.php
diff --git
a/maintenance/fetchText.php
b/maintenance/fetchText.php
index
7e1b527
..
9dee6e5
100644
(file)
--- a/
maintenance/fetchText.php
+++ b/
maintenance/fetchText.php
@@
-49,7
+49,7
@@
class FetchText extends Maintenance {
* note that the text string itself is *not* followed by newline
*/
public function execute() {
* note that the text string itself is *not* followed by newline
*/
public function execute() {
- $db = $this->getDB( DB_
SLAVE
);
+ $db = $this->getDB( DB_
REPLICA
);
$stdin = $this->getStdin();
while ( !feof( $stdin ) ) {
$line = fgets( $stdin );
$stdin = $this->getStdin();
while ( !feof( $stdin ) ) {
$line = fgets( $stdin );
@@
-71,7
+71,7
@@
class FetchText extends Maintenance {
/**
* May throw a database error if, say, the server dies during query.
/**
* May throw a database error if, say, the server dies during query.
- * @param Database
Base
$db
+ * @param Database $db
* @param int $id The old_id
* @return string
*/
* @param int $id The old_id
* @return string
*/