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
Avoid preemptive DB replication waits for farm cross-wiki redirects
[lhc/web/wiklou.git]
/
includes
/
WatchedItemQueryService.php
diff --git
a/includes/WatchedItemQueryService.php
b/includes/WatchedItemQueryService.php
index
ba77074
..
1fafb24
100644
(file)
--- a/
includes/WatchedItemQueryService.php
+++ b/
includes/WatchedItemQueryService.php
@@
-313,7
+313,7
@@
class WatchedItemQueryService {
$allFields = get_object_vars( $row );
$rcKeys = array_filter(
array_keys( $allFields ),
$allFields = get_object_vars( $row );
$rcKeys = array_filter(
array_keys( $allFields ),
- function( $key ) {
+ function
( $key ) {
return substr( $key, 0, 3 ) === 'rc_';
}
);
return substr( $key, 0, 3 ) === 'rc_';
}
);
@@
-390,7
+390,7
@@
class WatchedItemQueryService {
}
if ( array_key_exists( 'rcTypes', $options ) ) {
}
if ( array_key_exists( 'rcTypes', $options ) ) {
- $conds['rc_type'] = array_map( 'intval',
$options['rcTypes'] );
+ $conds['rc_type'] = array_map( 'intval', $options['rcTypes'] );
}
$conds = array_merge(
}
$conds = array_merge(
@@
-565,7
+565,7
@@
class WatchedItemQueryService {
}
if ( isset( $options['filter'] ) ) {
$filter = $options['filter'];
}
if ( isset( $options['filter'] ) ) {
$filter = $options['filter'];
- if ( $filter ===
self::FILTER_CHANGED ) {
+ if ( $filter === self::FILTER_CHANGED ) {
$conds[] = 'wl_notificationtimestamp IS NOT NULL';
} else {
$conds[] = 'wl_notificationtimestamp IS NULL';
$conds[] = 'wl_notificationtimestamp IS NOT NULL';
} else {
$conds[] = 'wl_notificationtimestamp IS NULL';