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
LinkBatch: Set visibility and document constructor
[lhc/web/wiklou.git]
/
includes
/
cache
/
LinkBatch.php
diff --git
a/includes/cache/LinkBatch.php
b/includes/cache/LinkBatch.php
index
ec37dd6
..
8a4d061
100644
(file)
--- a/
includes/cache/LinkBatch.php
+++ b/
includes/cache/LinkBatch.php
@@
-40,7
+40,11
@@
class LinkBatch {
*/
protected $caller;
*/
protected $caller;
- function __construct( $arr = [] ) {
+ /**
+ * LinkBatch constructor.
+ * @param LinkTarget[] $arr Initial items to be added to the batch
+ */
+ public function __construct( $arr = [] ) {
foreach ( $arr as $item ) {
$this->addObj( $item );
}
foreach ( $arr as $item ) {
$this->addObj( $item );
}
@@
-188,7
+192,7
@@
class LinkBatch {
}
// This is similar to LinkHolderArray::replaceInternal
}
// This is similar to LinkHolderArray::replaceInternal
- $dbr = wfGetDB( DB_
SLAVE
);
+ $dbr = wfGetDB( DB_
REPLICA
);
$table = 'page';
$fields = array_merge(
LinkCache::getSelectFields(),
$table = 'page';
$fields = array_merge(
LinkCache::getSelectFields(),