Fix new page/news links

This commit is contained in:
slawkens 2023-11-11 08:12:02 +01:00
parent 9a306886fb
commit 08a19158b3
2 changed files with 0 additions and 2 deletions

View File

@ -32,7 +32,6 @@ const ARTICLE_TEXT_LIMIT = 300;
const ARTICLE_IMAGE_LIMIT = 100; const ARTICLE_IMAGE_LIMIT = 100;
$name = $p_title = ''; $name = $p_title = '';
$action = $_POST['action'] ?? '';
if(!empty($action)) if(!empty($action))
{ {
$id = $_POST['id'] ?? null; $id = $_POST['id'] ?? null;

View File

@ -36,7 +36,6 @@ const PAGE_TITLE_LIMIT = 30;
const PAGE_NAME_LIMIT = 30; const PAGE_NAME_LIMIT = 30;
const PAGE_BODY_LIMIT = 65535; // maximum page body length const PAGE_BODY_LIMIT = 65535; // maximum page body length
$action = $_POST['action'] ?? '';
if (!empty($action)) { if (!empty($action)) {
if ($action == 'delete' || $action == 'edit' || $action == 'hide') { if ($action == 'delete' || $action == 'edit' || $action == 'hide') {
$id = $_POST['id']; $id = $_POST['id'];