From: umherirrender Date: Wed, 20 Nov 2013 19:05:19 +0000 (+0100) Subject: Avoid Database::encodeExpiry, when simple timestamp is given X-Git-Tag: 1.31.0-rc.0~18000^2 X-Git-Url: https://git.cyclocoop.org/%7B%24admin_url%7Dcompta/operations/modifier.php?a=commitdiff_plain;h=3fd1c59a7f6363cb0552204bbb4635420415384d;p=lhc%2Fweb%2Fwiklou.git 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 --- 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,