moodle/blog/set_session_vars.php
2006-03-16 07:22:58 +00:00

16 lines
381 B
PHP

<?php
/// inspired/taken from moodle calendar module's set.php file
require_once('../config.php');
$referrer = required_param('referrer', PARAM_URL);
if (isset($SESSION->blog_editing_enabled)) {
$SESSION->blog_editing_enabled = !$SESSION->blog_editing_enabled;
} else {
$SESSION->blog_editing_enabled = true;
}
redirect($referrer);
?>