Permalink
Browse files

MDL-16113 add warning to Scorm modedit page if slasharg is disabled. …

…merged from HEAD
  • Loading branch information...
1 parent d8bfab8 commit 4b51c3fb2f81868fd729a415c510474c300d7630 danmarsden committed Aug 20, 2008
Showing with 5 additions and 2 deletions.
  1. +2 −1 lang/en_utf8/scorm.php
  2. +3 −1 mod/scorm/mod_form.php
View
@@ -125,6 +125,7 @@
$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['options'] = 'Options';
$string['activityloading'] = "You will be automatically redirected to the activity in"; // used in conjunction with numseconds
$string['activitypleasewait'] = "Activity loading, please wait ....";
-?>
+?>
View
@@ -8,7 +8,9 @@ function definition() {
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'));

0 comments on commit 4b51c3f

Please sign in to comment.