mirror of
https://github.com/moodle/moodle.git
synced 2025-08-06 01:16:44 +02:00
Merge branch 'MDL-38005-master' of git://github.com/FMCorz/moodle
This commit is contained in:
commit
7c211f565a
17 changed files with 34 additions and 26 deletions
|
@ -1374,6 +1374,9 @@ class MoodleQuickForm extends HTML_QuickForm_DHTMLRulesTableless {
|
|||
* @return void
|
||||
*/
|
||||
function setExpanded($headername, $expanded=true){
|
||||
if (empty($headername)) {
|
||||
return;
|
||||
}
|
||||
$element = $this->getElement($headername);
|
||||
if ($element->getType() != 'header') {
|
||||
debugging('Cannot use setExpanded on non-header elements', DEBUG_DEVELOPER);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue