From 3fd1c59a7f6363cb0552204bbb4635420415384d Mon Sep 17 00:00:00 2001 From: umherirrender Date: Wed, 20 Nov 2013 20:05:19 +0100 Subject: [PATCH] Avoid Database::encodeExpiry, when simple timestamp is given Also remove wfTimestampNow because Database::timestamp will default to now, when no param is given. Change-Id: I0b065f4cdf67e1473548e641cf2864b4a2232ef8 --- includes/WikiPage.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/WikiPage.php b/includes/WikiPage.php index 6c2c6ad881..a59b795441 100644 --- a/includes/WikiPage.php +++ b/includes/WikiPage.php @@ -2393,7 +2393,7 @@ class WikiPage implements Page, IDBAccessObject { 'pt_namespace' => $this->mTitle->getNamespace(), 'pt_title' => $this->mTitle->getDBkey(), 'pt_create_perm' => $limit['create'], - 'pt_timestamp' => $dbw->encodeExpiry( wfTimestampNow() ), + 'pt_timestamp' => $dbw->timestamp(), 'pt_expiry' => $dbw->encodeExpiry( $expiry['create'] ), 'pt_user' => $user->getId(), 'pt_reason' => $reason, -- 2.20.1