Dump all the post data on failure.
This commit is contained in:
parent
f1aed15f32
commit
b229e114c2
@ -28,6 +28,7 @@ class AliasEditor extends Extension {
|
|||||||
|
|
||||||
if($event->page_matches("alias")) {
|
if($event->page_matches("alias")) {
|
||||||
if($event->get_arg(0) == "add") {
|
if($event->get_arg(0) == "add") {
|
||||||
|
die(var_dump($_POST));
|
||||||
if($user->can("manage_alias_list")) {
|
if($user->can("manage_alias_list")) {
|
||||||
if(isset($_POST['oldtag']) && isset($_POST['newtag'])) {
|
if(isset($_POST['oldtag']) && isset($_POST['newtag'])) {
|
||||||
try {
|
try {
|
||||||
@ -37,14 +38,9 @@ class AliasEditor extends Extension {
|
|||||||
$page->set_redirect(make_link("alias/list"));
|
$page->set_redirect(make_link("alias/list"));
|
||||||
}
|
}
|
||||||
catch(AddAliasException $ex) {
|
catch(AddAliasException $ex) {
|
||||||
die("error adding : "+ $ex->getMessage());
|
|
||||||
$this->theme->display_error(500, "Error adding alias", $ex->getMessage());
|
$this->theme->display_error(500, "Error adding alias", $ex->getMessage());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {die("No post data");}
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
die("error: add alias called and user test failed.");
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if($event->get_arg(0) == "remove") {
|
else if($event->get_arg(0) == "remove") {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user