X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=includes%2Fjobqueue%2Fjobs%2FActivityUpdateJob.php;h=da4ec2336da959fc78b65ce8738f5c1caa904d16;hp=13e36d81f6b763d82d39e45bd044d3ff451c4cca;hb=12601ff7d2796752404bfb331fccc41083d31f9f;hpb=fa666f1ca2ea4cc6136f1cae076a6084301c8707 diff --git a/includes/jobqueue/jobs/ActivityUpdateJob.php b/includes/jobqueue/jobs/ActivityUpdateJob.php index 13e36d81f6..da4ec2336d 100644 --- a/includes/jobqueue/jobs/ActivityUpdateJob.php +++ b/includes/jobqueue/jobs/ActivityUpdateJob.php @@ -16,7 +16,6 @@ * http://www.gnu.org/copyleft/gpl.html * * @file - * @author Aaron Schulz * @ingroup JobQueue */ @@ -55,10 +54,10 @@ class ActivityUpdateJob extends Job { $dbw = wfGetDB( DB_MASTER ); $dbw->update( 'watchlist', - array( + [ 'wl_notificationtimestamp' => $dbw->timestampOrNull( $this->params['notifTime'] ) - ), - array( + ], + [ 'wl_user' => $this->params['userid'], 'wl_namespace' => $this->title->getNamespace(), 'wl_title' => $this->title->getDBkey(), @@ -69,7 +68,7 @@ class ActivityUpdateJob extends Job { // is non-NULL, make sure not to set it back in time or set it to // NULL when newer revisions were in fact added to the page. 'wl_notificationtimestamp < ' . $dbw->addQuotes( $dbw->timestamp( $casTimestamp ) ) - ), + ], __METHOD__ ); }