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/page/delete.php | 2 +- admin/page/insert.php | 2 +- admin/page/update.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'admin/page') diff --git a/admin/page/delete.php b/admin/page/delete.php index 1406ece..69ad242 100644 --- a/admin/page/delete.php +++ b/admin/page/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('page/')); } } catch(PDOException $Exception) { diff --git a/admin/page/insert.php b/admin/page/insert.php index ec903e7..5d4339a 100644 --- a/admin/page/insert.php +++ b/admin/page/insert.php @@ -24,7 +24,7 @@ if(HTTP::issetPOST('id', 'user', 'slug', 'name', 'body', 'argv', 'time_insert', if(HTTP::issetPOST(['token' => Application::getSecurityToken()])) { try { - if($Attribute->databaseINSERT($Database)) { + if($Attribute->insert($Database)) { HTTP::redirect(Application::getAdminURL('page/')); } } catch(PDOException $Exception) { diff --git a/admin/page/update.php b/admin/page/update.php index ba34a86..8cbef7f 100644 --- a/admin/page/update.php +++ b/admin/page/update.php @@ -28,7 +28,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