mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 00:16:46 +02:00
Fixed popup window call (eg from email)
This commit is contained in:
parent
cb68af8b89
commit
b8011a8570
1 changed files with 2 additions and 2 deletions
|
@ -20,13 +20,13 @@
|
|||
$removecontact = optional_param('removecontact', 0, PARAM_INT); // removing a contact
|
||||
$blockcontact = optional_param('blockcontact', 0, PARAM_INT); // blocking a contact
|
||||
$unblockcontact = optional_param('unblockcontact', 0, PARAM_INT); // unblocking a contact
|
||||
$popup = optional_param('popup', false, PARAM_ALPHA); // If set then starts a new popup window
|
||||
$popup = optional_param('popup', false, PARAM_ALPHANUM); // If set then starts a new popup window
|
||||
|
||||
/// Popup a window if required and quit (usually from external links).
|
||||
if ($popup) {
|
||||
print_header();
|
||||
echo '<script type="text/javascript">'."\n//<![CDATA[\n openpopup('/message/index.php', 'message', 'menubar=0,location=0,scrollbars,status,resizable,width=400,height=500', 0);\n//]]>\n</script>";
|
||||
redirect("$CFG->wwwroot/");
|
||||
redirect("$CFG->wwwroot/", '', 0);
|
||||
exit;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue