Make $action global (required by many scripts)

This commit is contained in:
slawkens 2025-03-16 09:40:52 +01:00
parent b047f73fe6
commit 31d2a3bde8
2 changed files with 2 additions and 1 deletions

View File

@ -51,6 +51,7 @@ $hooks = app()->get('hooks');
require_once SYSTEM . 'twig.php';
// action, used by many pages
global $action;
$action = $_REQUEST['action'] ?? '';
define('ACTION', $action);

View File

@ -9,7 +9,7 @@ class RouterService
{
public function handleRouting(): array
{
global $content, $template_path, $template;
global $content, $template_path, $template, $canEdit, $action;
$db = app()->get('database');
$twig = app()->get('twig');