From 9e523d307f06ab2d05050578d7c94084fcb3c794 Mon Sep 17 00:00:00 2001 From: dignajar Date: Sat, 27 Jun 2015 01:32:29 -0300 Subject: [PATCH] Bug fixes --- admin/controllers/edit-user.php | 4 ++-- admin/controllers/new-page.php | 4 ++-- admin/controllers/new-post.php | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/admin/controllers/edit-user.php b/admin/controllers/edit-user.php index f0705ba4..a3c500ac 100644 --- a/admin/controllers/edit-user.php +++ b/admin/controllers/edit-user.php @@ -14,7 +14,7 @@ function editUser($args) return $dbUsers->setPassword($args); } else { - Alert::set('Passwords are differents.'); + Alert::set('Passwords are differents'); return false; } } @@ -39,7 +39,7 @@ if( $_SERVER['REQUEST_METHOD'] == 'POST' ) } if( editUser($_POST) ) { - Alert::set('User saved successfuly.'); + Alert::set('User saved successfuly'); } } diff --git a/admin/controllers/new-page.php b/admin/controllers/new-page.php index e88da934..7f1084b6 100644 --- a/admin/controllers/new-page.php +++ b/admin/controllers/new-page.php @@ -15,12 +15,12 @@ function addPage($args) // Add the page. if( $dbPages->add($args) ) { - Alert::set('Page added successfuly.'); + Alert::set('Page added successfuly'); Redirect::page('admin', 'manage-pages'); } else { - Alert::set('Error occurred when trying to create the page.'); + Alert::set('Error occurred when trying to create the page'); } } diff --git a/admin/controllers/new-post.php b/admin/controllers/new-post.php index b8e5e2a7..4bfa7d3e 100644 --- a/admin/controllers/new-post.php +++ b/admin/controllers/new-post.php @@ -15,12 +15,12 @@ function addPost($args) // Add the page. if( $dbPosts->add($args) ) { - Alert::set('Post added successfuly.'); + Alert::set('Post added successfuly'); Redirect::page('admin', 'manage-posts'); } else { - Alert::set('Error occurred when trying to create the post.'); + Alert::set('Error occurred when trying to create the post'); } }