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 "mediawiki.skinning: Add magnify links to Parsoid output"
[lhc/web/wiklou.git]
/
includes
/
WatchedItemStore.php
diff --git
a/includes/WatchedItemStore.php
b/includes/WatchedItemStore.php
index
228f93b
..
69a9df2
100644
(file)
--- a/
includes/WatchedItemStore.php
+++ b/
includes/WatchedItemStore.php
@@
-104,7
+104,7
@@
class WatchedItemStore implements StatsdAwareInterface {
}
$previousValue = $this->deferredUpdatesAddCallableUpdateCallback;
$this->deferredUpdatesAddCallableUpdateCallback = $callback;
}
$previousValue = $this->deferredUpdatesAddCallableUpdateCallback;
$this->deferredUpdatesAddCallableUpdateCallback = $callback;
- return new ScopedCallback( function() use ( $previousValue ) {
+ return new ScopedCallback( function
() use ( $previousValue ) {
$this->deferredUpdatesAddCallableUpdateCallback = $previousValue;
} );
}
$this->deferredUpdatesAddCallableUpdateCallback = $previousValue;
} );
}
@@
-127,7
+127,7
@@
class WatchedItemStore implements StatsdAwareInterface {
}
$previousValue = $this->revisionGetTimestampFromIdCallback;
$this->revisionGetTimestampFromIdCallback = $callback;
}
$previousValue = $this->revisionGetTimestampFromIdCallback;
$this->revisionGetTimestampFromIdCallback = $callback;
- return new ScopedCallback( function() use ( $previousValue ) {
+ return new ScopedCallback( function
() use ( $previousValue ) {
$this->revisionGetTimestampFromIdCallback = $previousValue;
} );
}
$this->revisionGetTimestampFromIdCallback = $previousValue;
} );
}
@@
-581,7
+581,8
@@
class WatchedItemStore implements StatsdAwareInterface {
);
foreach ( $res as $row ) {
);
foreach ( $res as $row ) {
- $timestamps[$row->wl_namespace][$row->wl_title] = $row->wl_notificationtimestamp;
+ $timestamps[$row->wl_namespace][$row->wl_title] =
+ wfTimestampOrNull( TS_MW, $row->wl_notificationtimestamp );
}
return $timestamps;
}
return $timestamps;
@@
-820,7
+821,7
@@
class WatchedItemStore implements StatsdAwareInterface {
// Calls DeferredUpdates::addCallableUpdate in normal operation
call_user_func(
$this->deferredUpdatesAddCallableUpdateCallback,
// Calls DeferredUpdates::addCallableUpdate in normal operation
call_user_func(
$this->deferredUpdatesAddCallableUpdateCallback,
- function() use ( $job ) {
+ function
() use ( $job ) {
$job->run();
}
);
$job->run();
}
);