Changed some sesskey behaviours SC#73 (admin part)

This commit is contained in:
stronk7 2005-01-22 19:53:28 +00:00
parent 010ec024b8
commit 4e27a2b92e
4 changed files with 11 additions and 11 deletions

View file

@ -14,10 +14,6 @@
error("Site isn't defined!");
}
if (!confirm_sesskey()) {
error(get_string('confirmsesskeybad', 'error'));
}
require_variable($_REQUEST['block']);
$blockid = intval($_REQUEST['block']);
@ -40,6 +36,10 @@
/// If data submitted, then process and store.
if ($config = data_submitted()) {
if (!confirm_sesskey()) {
error(get_string('confirmsesskeybad', 'error'));
}
if(!$block->has_config()) {
error('This block does not support global configuration');
}