We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents c5359ac + 78f5620 commit dcb224fCopy full SHA for dcb224f
post.php
@@ -34,6 +34,16 @@
34
$delete = optional_param('delete', 0, PARAM_INT);
35
$confirm = optional_param('confirm', 0, PARAM_INT);
36
37
+$count = 0;
38
+$count += $moodleoverflow ? 1 : 0;
39
+$count += $reply ? 1 : 0;
40
+$count += $edit ? 1 : 0;
41
+$count += $delete ? 1 : 0;
42
+
43
+if ($count !== 1) {
44
+ throw new coding_exception('Exactly one parameter should be specified!');
45
+}
46
47
// Set the URL that should be used to return to this page.
48
$PAGE->set_url('/mod/moodleoverflow/post.php', array(
49
'moodleoverflow' => $moodleoverflow,
0 commit comments