Bug fixes
This commit is contained in:
parent
8530c8a7ba
commit
9e523d307f
|
@ -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');
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -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');
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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');
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue