set REQUEST_URI in get-page
This commit is contained in:
parent
360a46e09b
commit
345c64b821
@ -81,6 +81,7 @@ class AdminPage extends Extension
|
|||||||
}
|
}
|
||||||
if ($event->cmd == "get-page") {
|
if ($event->cmd == "get-page") {
|
||||||
global $page;
|
global $page;
|
||||||
|
$_SERVER['REQUEST_URI'] = $event->args[0] . "?" . $event->args[1];
|
||||||
if (isset($event->args[1])) {
|
if (isset($event->args[1])) {
|
||||||
parse_str($event->args[1], $_GET);
|
parse_str($event->args[1], $_GET);
|
||||||
}
|
}
|
||||||
|
@ -462,7 +462,7 @@ class CronUploader extends Extension
|
|||||||
|
|
||||||
// Generate info message
|
// Generate info message
|
||||||
if ($event->image_id == -1) {
|
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 (".$event->metadata["mime"]."). Filename: {$filename}");
|
||||||
}
|
}
|
||||||
throw new UploadException("File type not recognised. Filename: {$filename}");
|
throw new UploadException("File type not recognised. Filename: {$filename}");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user