set REQUEST_URI in get-page
This commit is contained in:
parent
360a46e09b
commit
345c64b821
2 changed files with 2 additions and 1 deletions
|
@ -81,6 +81,7 @@ class AdminPage extends Extension
|
|||
}
|
||||
if ($event->cmd == "get-page") {
|
||||
global $page;
|
||||
$_SERVER['REQUEST_URI'] = $event->args[0] . "?" . $event->args[1];
|
||||
if (isset($event->args[1])) {
|
||||
parse_str($event->args[1], $_GET);
|
||||
}
|
||||
|
|
|
@ -462,7 +462,7 @@ class CronUploader extends Extension
|
|||
|
||||
// Generate info message
|
||||
if ($event->image_id == -1) {
|
||||
if(array_key_exists("mime",$event->metadata)) {
|
||||
if (array_key_exists("mime", $event->metadata)) {
|
||||
throw new UploadException("File type not recognised (".$event->metadata["mime"]."). Filename: {$filename}");
|
||||
}
|
||||
throw new UploadException("File type not recognised. Filename: {$filename}");
|
||||
|
|
Reference in a new issue