-
Bug
-
Resolution: Fixed
-
Minor
-
3.3, 3.5.18, 3.8.9, 3.9.7, 3.10.4, 3.11, 4.2.1
After update from Moodle 3.1.1+ to Moodle 3.3+ got mustache exception.
It is only visible when PHP extension Xdebug turned on.
( ! ) Mustache_Exception_UnknownHelperException: Unknown helper: uniqid in C:\Server\home\moodle.test\www\lib\mustache\src\Mustache\HelperCollection.php on line 93 |
I use next patch:
In file /lib/outputrenderers.php I added two rows into the method get_mustache:
$uniqidhelper = new \core\output\mustache_uniqid_helper(); |
And into $helpers array element 'unigid'
$helpers = array('config' => $safeconfig, |
'str' => array($stringhelper, 'str'), |
'quote' => array($quotehelper, 'quote'), |
'js' => array($jshelper, 'help'), |
'pix' => array($pixhelper, 'pix'), |
'shortentext' => array($shortentexthelper, 'shorten'), |
'userdate' => array($userdatehelper, 'transform'), |
'uniqid' => array($uniqidhelper, 'uniqid'), |
);
|
P.S.
Moodle 3.3+
Themes: Adaptable, BCU, Boost, Clean.