mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 17:06:53 +02:00
MDL-16113 add warning to Scorm modedit page if slasharg is disabled. merged from HEAD
This commit is contained in:
parent
d8bfab810c
commit
4b51c3fb2f
2 changed files with 5 additions and 2 deletions
|
@ -125,6 +125,7 @@ $string['scormcourse'] = 'Learning Course';
|
|||
$string['scrollbars'] = 'Allow the window to be scrolled';
|
||||
$string['sided'] = 'On the left side';
|
||||
$string['skipview'] = 'Student skip content structure page';
|
||||
$string['slashargs'] = 'WARNING: slash arguments is disabled on this site and objects may not function as expected!';
|
||||
$string['stagesize'] = 'Stage size';
|
||||
$string['started'] = 'Started on';
|
||||
$string['status'] = 'Status';
|
||||
|
@ -156,4 +157,4 @@ $string['updatefreq'] = 'Auto-update frequency';
|
|||
$string['options'] = 'Options';
|
||||
$string['activityloading'] = "You will be automatically redirected to the activity in"; // used in conjunction with numseconds
|
||||
$string['activitypleasewait'] = "Activity loading, please wait ....";
|
||||
?>
|
||||
?>
|
|
@ -8,7 +8,9 @@ class mod_scorm_mod_form extends moodleform_mod {
|
|||
|
||||
global $CFG, $COURSE, $SCORM_GRADE_METHOD, $SCORM_WHAT_GRADE;
|
||||
$mform =& $this->_form;
|
||||
|
||||
if (isset($CFG->slasharguments) && !$CFG->slasharguments) {
|
||||
$mform->addElement('static', '', '',notify(get_string('slashargs', 'scorm'), 'notifyproblem', 'center', true));
|
||||
}
|
||||
//-------------------------------------------------------------------------------
|
||||
$mform->addElement('header', 'general', get_string('general', 'form'));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue