Git commits in Moodle 3.1.x by Gilles-Philippe Leblanc

commit 4bd3c5766e51105481d330b7b65fe94f1bcef5bf
Author: Gilles-Philippe Leblanc <gilles-philippe.leblanc@umontreal.ca>
Date:   Wed, 19 Apr 2017 02:48:26 +0800
Tag:    v3.1.6

MDL-58096 reports: Add SQL required by preload_from_record()

commit e8d61c6f11ff4675b31633259e338a6ac132be6b
Author: Gilles-Philippe Leblanc <gilles-philippe.leblanc@umontreal.ca>
Date:   Tue, 11 Apr 2017 02:59:39 +0800
Tag:    v3.1.6

MDL-58096 reports: Optimize database request

commit 97b0761cdff2f95d6806191ffecb27ca82a52465
Author: Gilles-Philippe Leblanc <gilles-philippe.leblanc@umontreal.ca>
Date:   Mon, 30 May 2016 23:50:31 +0800
Tag:    v3.1.1

MDL-54755 core: Incorrect redirection after password change