From 4e71a612e6449cf022b948e0d1db4fa8e258281d Mon Sep 17 00:00:00 2001 From: Benjamin Franzke Date: Wed, 21 Nov 2012 09:25:12 +0100 Subject: sqlbox/view: Pass page url to form --- sqlbox/view.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'sqlbox/view.php') diff --git a/sqlbox/view.php b/sqlbox/view.php index 426e1d9..ee30811 100644 --- a/sqlbox/view.php +++ b/sqlbox/view.php @@ -75,9 +75,8 @@ if ($sqlbox->intro) { // Conditions to show the intro can change to look for own // Replace the following lines with you own code echo $OUTPUT->heading('Yay! It works!'); -$form = new mod_sqlbox_form(NULL, array()); +$form = new mod_sqlbox_form($PAGE->url->out(false)); $form->display(); - print_r($form->get_data()); // Finish the page -- cgit