mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
Added optional_param and required_param just to get it on the plate
This commit is contained in:
parent
6446885595
commit
e0d346ff91
4 changed files with 112 additions and 35 deletions
|
@ -1,18 +1,18 @@
|
|||
<?php // $Id$
|
||||
|
||||
/*
|
||||
* Jumps to a given URL. Mostly used for accessibility.
|
||||
* Jumps to a given URL. Mostly used for accessibility.
|
||||
*
|
||||
*/
|
||||
|
||||
require('../config.php');
|
||||
require('../config.php');
|
||||
|
||||
$jump = parameter('jump');
|
||||
$jump = optional_param('jump', '');
|
||||
|
||||
if ($jump) {
|
||||
redirect(urldecode($jump));
|
||||
}
|
||||
if ($jump) {
|
||||
redirect(urldecode($jump));
|
||||
}
|
||||
|
||||
redirect($_SERVER['HTTP_REFERER']);
|
||||
redirect($_SERVER['HTTP_REFERER']);
|
||||
|
||||
?>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue