adjust argc check in mod/editpost + relative path in mod/message
This commit is contained in:
parent
807ad14521
commit
58f26d195f
|
@ -21,7 +21,7 @@ function editpost_content(App $a)
|
|||
}
|
||||
|
||||
$post_id = (($a->argc > 1) ? intval($a->argv[1]) : 0);
|
||||
$return_url = (($a->argc > 1) ? base64_decode($a->argv[2]) : '');
|
||||
$return_url = (($a->argc > 2) ? base64_decode($a->argv[2]) : '');
|
||||
|
||||
if (!$post_id) {
|
||||
notice(L10n::t('Item not found') . EOL);
|
||||
|
|
|
@ -92,7 +92,7 @@ function message_post(App $a)
|
|||
$a->argc = 2;
|
||||
$a->argv[1] = 'new';
|
||||
} else {
|
||||
goaway(System::baseUrl() . '/' . $a->cmd . '/' . $ret);
|
||||
goaway($a->cmd . '/' . $ret);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user