From c0e3f48f0659a745a1bec0793023f7c3e83dfc4d Mon Sep 17 00:00:00 2001 From: printempw Date: Wed, 3 Feb 2016 14:02:24 +0800 Subject: [PATCH] add last_update to json profile --- includes/user.class.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/includes/user.class.php b/includes/user.class.php index e12a0054..78e01850 100644 --- a/includes/user.class.php +++ b/includes/user.class.php @@ -3,7 +3,7 @@ * @Author: printempw * @Date: 2016-01-16 23:01:33 * @Last Modified by: prpr - * @Last Modified time: 2016-02-03 13:31:10 + * @Last Modified time: 2016-02-03 14:00:51 */ class user @@ -111,6 +111,7 @@ class user header('Content-type: application/json'); if ($this->is_registered) { $json['player_name'] = $this->uname; + $json['last_update'] = $this->getLastModified(); $preference = $this->getPreference(); $json['model_preference'] = [$preference]; $json['skins'][$preference] = $this->getTexture('skin');