Начат запил страницы отображающей пост
This commit is contained in:
@@ -26,10 +26,10 @@ if (isset($_POST) && $_POST) {
|
||||
$result = Post_Create_Method($_POST, $_FILES);
|
||||
if ($result->IsError()) { // Something happened
|
||||
NTFY_AddNotice("Failed to create post! Reason:<br>" . $result->GetError());
|
||||
} /*else { // All OK
|
||||
header("Location: .");
|
||||
} else { // All OK
|
||||
header("Location: ./?do=view_post&id=" + strval($result->GetData()));
|
||||
exit();
|
||||
} TODO: redirect to page with new post */
|
||||
}
|
||||
} else {
|
||||
NTFY_AddNotice("You must supply image and tags for post");
|
||||
}
|
||||
|
Reference in New Issue
Block a user