mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 06:18:28 +01:00
Merge branch 'MDL-59467-main' of https://github.com/andrewnicols/moodle
This commit is contained in:
commit
bd2f9abc1e
@ -181,10 +181,10 @@ class renderer_base {
|
||||
public function render_from_template($templatename, $context) {
|
||||
$mustache = $this->get_mustache();
|
||||
|
||||
try {
|
||||
if ($mustache->hasHelper('uniqid')) {
|
||||
// Grab a copy of the existing helper to be restored later.
|
||||
$uniqidhelper = $mustache->getHelper('uniqid');
|
||||
} catch (Mustache_Exception_UnknownHelperException $e) {
|
||||
} else {
|
||||
// Helper doesn't exist.
|
||||
$uniqidhelper = null;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user