diff --git a/bl-kernel/admin/controllers/new-post.php b/bl-kernel/admin/controllers/new-post.php index 19463e3b..29da3479 100644 --- a/bl-kernel/admin/controllers/new-post.php +++ b/bl-kernel/admin/controllers/new-post.php @@ -11,7 +11,8 @@ function addPost($args) { global $dbPosts; global $Language; - + global $adminfolder; + // Add the page, if the $key is FALSE the creation of the post failure. $key = $dbPosts->add($args); @@ -25,7 +26,7 @@ function addPost($args) // Alert for the user Alert::set($Language->g('Post added successfully')); - Redirect::page('admin', 'manage-posts'); + Redirect::page($adminfolder, 'manage-posts'); } else {