Git commits in Moodle 3.2.2 by Tim Hunt

commit ec02a34e1fb74b11027bc10e1db4372109e0beed
Author: Tim Hunt <T.J.Hunt@open.ac.uk>
Date:   Tue, 07 Mar 2017 21:35:06 +0800
Tag:    v3.2.2

MDL-58035 tool_templatelibrary: fix unit test using removed base theme

commit b21b210f41fc478cb4baa88b93e0f6b347f7fe93
Author: Tim Hunt <T.J.Hunt@open.ac.uk>
Date:   Wed, 01 Mar 2017 20:43:50 +0800
Tag:    v3.2.2

MDL-58106 random Q restore: avoid MySQL performance issues

commit 6fef2ab3dbe2c4f8f949f3c8dffa018db22f3ae5
Author: Tim Hunt <T.J.Hunt@open.ac.uk>
Date:   Tue, 21 Feb 2017 22:47:03 +0800
Tag:    v3.2.2

MDL-58040 blocklib: never use global  in block manager class

commit 1e1e1b822958c58d897df779f81fd8ce31005157
Author: Tim Hunt <T.J.Hunt@open.ac.uk>
Date:   Tue, 21 Feb 2017 19:50:47 +0800
Tag:    v3.2.2

MDL-58035 lib: log when the expected theme cannot be initialised

commit 4679634e36b943ae0585d6111b93c362aaafe748
Author: Tim Hunt <T.J.Hunt@open.ac.uk>
Date:   Mon, 30 Jan 2017 22:31:15 +0800
Tag:    v3.2.2

MDL-57588 questions: regrading should not lose flags

commit a551ea02104593b8fc0240ca6d14d1b946ae305d
Author: Tim Hunt <T.J.Hunt@open.ac.uk>
Date:   Fri, 27 Jan 2017 02:53:16 +0800
Tag:    v3.2.2

MDL-57587 question file access: fix regression caused by MDL-53744