parameter cleaup - round 4

This commit is contained in:
skodak
2006-03-06 19:27:25 +00:00
parent de533d2612
commit a2eaae6102
7 changed files with 28 additions and 36 deletions
+7 -7
View File
@@ -5,12 +5,12 @@
// This page is not yet in service, the whole plug-in architecture
// for question types is still under construction.
require_once("../config.php");
require_once('../config.php');
$disable = optional_param('disable');
$enable = optional_param('enable');
$delete = optional_param('delete');
$confirm = optional_param('confirm');
$show = optional_param('show', '', PARAM_SAFEDIR);
$hide = optional_param('hide', '', PARAM_SAFEDIR);
$delete = optional_param('delete', '', PARAM_SAFEDIR);
$confirm = optional_param('confirm', '', PARAM_BOOL);
require_login();
@@ -62,9 +62,9 @@
$strqtypename = get_string("qtypename", "qtype_$delete");
if (empty($confirm)) {
if (!$confirm) {
notice_yesno(get_string("qtypedeleteconfirm", "admin", $strqtypename),
"questiontypes.php?delete=$delete&confirm=$delete&sesskey=$USER->sesskey",
"questiontypes.php?delete=$delete&confirm=1&sesskey=$USER->sesskey",
"questiontypes.php");
print_footer();
exit;