Merge branch 'MDL-70457_39' of https://github.com/stronk7/moodle into MOODLE_39_STABLE

This commit is contained in:
Jun Pataleta 2021-03-02 17:38:28 +08:00
commit 0d355a0e8d
2 changed files with 7 additions and 2 deletions

View file

@ -308,7 +308,7 @@ class HTML_QuickForm_date extends HTML_QuickForm_group
$locale =& $this->_locale[$this->_options['language']]; $locale =& $this->_locale[$this->_options['language']];
$backslash = false; $backslash = false;
for ($i = 0, $length = strlen($this->_options['format']); $i < $length; $i++) { for ($i = 0, $length = strlen($this->_options['format']); $i < $length; $i++) {
$sign = $this->_options['format']{$i}; $sign = $this->_options['format'][$i];
if ($backslash) { if ($backslash) {
$backslash = false; $backslash = false;
$separator .= $sign; $separator .= $sign;

View file

@ -12,6 +12,10 @@ Quickforms
Full of our custom hacks, no way to upgrade to latest upstream. Full of our custom hacks, no way to upgrade to latest upstream.
Most probably we will stop using this library in the future. Most probably we will stop using this library in the future.
Just dropping a couple of links here, for whenever we update/switch or whatever:
- QF2: https://github.com/pear/HTML_QuickForm2 (https://moodle.org/mod/forum/discuss.php?d=200124)
- Quickform (fork): https://github.com/openpsa/quickform
MDL-20876 - replaced split() with explode() or preg_split() where appropriate MDL-20876 - replaced split() with explode() or preg_split() where appropriate
MDL-40267 - Moodle core_text strlen functions used for range rule rule to be utf8 safe. MDL-40267 - Moodle core_text strlen functions used for range rule rule to be utf8 safe.
MDL-46467 - $mform->hardfreeze causes labels to loose their for HTML attribute MDL-46467 - $mform->hardfreeze causes labels to loose their for HTML attribute
@ -24,6 +28,7 @@ MDL-60281 - replaced deprecated create_function() with lambda functions for PHP7
MDL-70711 - removed unnecessary if-else conditional block in HTML_QuickForm as the given MDL-70711 - removed unnecessary if-else conditional block in HTML_QuickForm as the given
condition always evaluates to false due to the deprecated get_magic_quotes_gpc() condition always evaluates to false due to the deprecated get_magic_quotes_gpc()
which always returns false which always returns false
MDL-70457 - PHP 7.4 curly brackets string access fix.
Pear Pear
==== ====