From: toyomoyo Date: Mon, 8 Jan 2007 08:00:56 +0000 (+0000) Subject: MDL-7861, xhtml problems with survey X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=a2f6a096052b38839bdd15ba7ef0d235489146ac;p=moodle.git MDL-7861, xhtml problems with survey --- diff --git a/mod/survey/details.php b/mod/survey/details.php index ba0cecb55f..540d90b276 100644 --- a/mod/survey/details.php +++ b/mod/survey/details.php @@ -54,7 +54,9 @@ " -> ".stripslashes_safe($lastform->name)." ($streditingasurvey)"); if (!$lastform->name or !$lastform->template) { - error(get_string("filloutallfields"), $_SERVER["HTTP_REFERER"]); + // $_SERVER["HTTP_REFERER"] breaks xhtml, urlencode breaks continue button, + // removing $_SERVER["HTTP_REFERER"] + error(get_string("filloutallfields")); } $mform = new mod_survey_details_form($CFG->wwwroot.'/course/mod.php', array('lastform'=>stripslashes_safe($lastform))); $mform->display(); diff --git a/mod/survey/mod.html b/mod/survey/mod.html index 9fffc9efd8..506cd6ec38 100644 --- a/mod/survey/mod.html +++ b/mod/survey/mod.html @@ -12,6 +12,7 @@ ?>
+
@@ -37,7 +38,7 @@
:
-
+
@@ -49,5 +50,6 @@ " /> " /> -
+ +
diff --git a/mod/survey/view.php b/mod/survey/view.php index 6345827db1..e2fce800a6 100644 --- a/mod/survey/view.php +++ b/mod/survey/view.php @@ -159,7 +159,7 @@