Skip to content

Commit

Permalink
Merge branch 'MDL-70457_310' of https://github.com/stronk7/moodle int…
Browse files Browse the repository at this point in the history
…o MOODLE_310_STABLE
  • Loading branch information
junpataleta committed Mar 2, 2021
2 parents aa0d546 + d921a64 commit 4ddc2a6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/pear/HTML/QuickForm/date.php
Expand Up @@ -308,7 +308,7 @@ function _createElements()
$locale =& $this->_locale[$this->_options['language']];
$backslash = false;
for ($i = 0, $length = strlen($this->_options['format']); $i < $length; $i++) {
$sign = $this->_options['format']{$i};
$sign = $this->_options['format'][$i];
if ($backslash) {
$backslash = false;
$separator .= $sign;
Expand Down Expand Up @@ -507,4 +507,4 @@ function onQuickFormEvent($event, $arg, &$caller)

// }}}
}
?>
?>
5 changes: 5 additions & 0 deletions lib/pear/README_MOODLE.txt
Expand Up @@ -12,6 +12,10 @@ Quickforms
Full of our custom hacks, no way to upgrade to latest upstream.
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-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
Expand All @@ -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
condition always evaluates to false due to the deprecated get_magic_quotes_gpc()
which always returns false
MDL-70457 - PHP 7.4 curly brackets string access fix.

Pear
====
Expand Down

0 comments on commit 4ddc2a6

Please sign in to comment.