/blog/add-post.php |
---|
41,7 → 41,7 |
else |
{ |
$page->query('INSERT INTO BlogPosts VALUES(0, ' . $parentID . ', "' . $page->getLoggedInUser()->ID . '", "' . $title . '", "' . $content . '", NOW(), "' . $category . '", 0)'); |
$page->redirect('index.php'); |
$page->redirect('post.php?id=' . $parentID); |
} |
} |