aboutsummaryrefslogtreecommitdiffstats
path: root/admin/page
diff options
context:
space:
mode:
Diffstat (limited to 'admin/page')
-rw-r--r--admin/page/insert.php2
-rw-r--r--admin/page/update.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/admin/page/insert.php b/admin/page/insert.php
index 76e9fb4..c1d9e5d 100644
--- a/admin/page/insert.php
+++ b/admin/page/insert.php
@@ -24,7 +24,7 @@ $Page = new ORM\Entities\Page;
#===============================================================================
# Check for insert request
#===============================================================================
-if(HTTP::issetPOST('user', 'slug', 'name', 'body', 'argv', 'time_insert', 'time_update', 'insert')) {
+if(HTTP::issetPOST('insert')) {
$Page->set('user', HTTP::POST('user'));
$Page->set('slug', HTTP::POST('slug') ?: generateSlug(HTTP::POST('name')));
$Page->set('name', HTTP::POST('name') ?: NULL);
diff --git a/admin/page/update.php b/admin/page/update.php
index 2ea5156..5ec5f73 100644
--- a/admin/page/update.php
+++ b/admin/page/update.php
@@ -26,7 +26,7 @@ if(!$Page = $PageRepository->find(HTTP::GET('id'))) {
#===============================================================================
# Check for update request
#===============================================================================
-if(HTTP::issetPOST('user', 'slug', 'name', 'body', 'argv', 'time_insert', 'time_update', 'update')) {
+if(HTTP::issetPOST('update')) {
$Page->set('user', HTTP::POST('user'));
$Page->set('slug', HTTP::POST('slug') ?: generateSlug(HTTP::POST('name')));
$Page->set('name', HTTP::POST('name') ?: NULL);