From 84455052b4f2aa90f12e83a60acd896301512357 Mon Sep 17 00:00:00 2001 From: Thomas Lange Date: Sat, 19 Jun 2021 00:36:30 +0200 Subject: Rename CRUD methods of Attribute class --- admin/user/delete.php | 2 +- admin/user/insert.php | 2 +- admin/user/update.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'admin/user') diff --git a/admin/user/delete.php b/admin/user/delete.php index 18a57cf..5bc2aa5 100644 --- a/admin/user/delete.php +++ b/admin/user/delete.php @@ -19,7 +19,7 @@ try { if(HTTP::issetPOST(['token' => Application::getSecurityToken()], 'delete')) { try { - if($Attribute->databaseDELETE($Database)) { + if($Attribute->delete($Database)) { HTTP::redirect(Application::getAdminURL('user/')); } } catch(PDOException $Exception) { diff --git a/admin/user/insert.php b/admin/user/insert.php index 59b9444..9a84fa9 100644 --- a/admin/user/insert.php +++ b/admin/user/insert.php @@ -26,7 +26,7 @@ if(HTTP::issetPOST('id', 'slug', 'username', 'password', 'fullname', 'mailaddr', if(HTTP::issetPOST(['token' => Application::getSecurityToken()])) { try { - if($Attribute->databaseINSERT($Database)) { + if($Attribute->insert($Database)) { HTTP::redirect(Application::getAdminURL('user/')); } } catch(PDOException $Exception) { diff --git a/admin/user/update.php b/admin/user/update.php index b9b5f08..f53d996 100644 --- a/admin/user/update.php +++ b/admin/user/update.php @@ -30,7 +30,7 @@ try { if(HTTP::issetPOST(['token' => Application::getSecurityToken()])) { try { - $Attribute->databaseUPDATE($Database); + $Attribute->update($Database); } catch(PDOException $Exception) { $messages[] = $Exception->getMessage(); } -- cgit v1.2.3