]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-16113 add warning to Scorm modedit page if slasharg is disabled.
authordanmarsden <danmarsden>
Wed, 20 Aug 2008 02:21:34 +0000 (02:21 +0000)
committerdanmarsden <danmarsden>
Wed, 20 Aug 2008 02:21:34 +0000 (02:21 +0000)
lang/en_utf8/scorm.php
mod/scorm/mod_form.php

index 25d9798d82bddafd04b81faf3714eb8b5e975193..10cba5291331e32316236556f363da9e9f53ccf8 100644 (file)
@@ -128,6 +128,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';
@@ -160,4 +161,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 ....";
-?>
+?>
\ No newline at end of file
index a8153a5f39644348e95c120ee1cb561647268540..d20cb15009f6017794fbd220eff236740612cd4c 100644 (file)
@@ -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'));