mirror of
https://github.com/moodle/moodle.git
synced 2025-04-15 13:33:52 +02:00
Merge branch 'MDL-50391-master' of git://github.com/aspark21/moodle
This commit is contained in:
commit
d2999f8085
@ -338,16 +338,10 @@ class format_singleactivity extends format_base {
|
||||
* @return bool|null (null if the check is not possible)
|
||||
*/
|
||||
public function activity_has_subtypes() {
|
||||
global $CFG;
|
||||
if (!($modname = $this->get_activitytype())) {
|
||||
return null;
|
||||
}
|
||||
$libfile = "$CFG->dirroot/mod/$modname/lib.php";
|
||||
if (!file_exists($libfile)) {
|
||||
return null;
|
||||
}
|
||||
include_once($libfile);
|
||||
return function_exists($modname. '_get_types');
|
||||
return component_callback('mod_' . $modname, 'get_types', array(), MOD_SUBTYPE_NO_CHILDREN) !== MOD_SUBTYPE_NO_CHILDREN;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -75,10 +75,12 @@ class mod_lti_mod_form extends moodleform_mod {
|
||||
$mform->setAdvanced('introeditor');
|
||||
|
||||
// Display the label to the right of the checkbox so it looks better & matches rest of the form.
|
||||
$coursedesc = $mform->getElement('showdescription');
|
||||
if (!empty($coursedesc)) {
|
||||
$coursedesc->setText(' ' . $coursedesc->getLabel());
|
||||
$coursedesc->setLabel(' ');
|
||||
if ($mform->elementExists('showdescription')) {
|
||||
$coursedesc = $mform->getElement('showdescription');
|
||||
if (!empty($coursedesc)) {
|
||||
$coursedesc->setText(' ' . $coursedesc->getLabel());
|
||||
$coursedesc->setLabel(' ');
|
||||
}
|
||||
}
|
||||
|
||||
$mform->setAdvanced('showdescription');
|
||||
|
Loading…
x
Reference in New Issue
Block a user