mirror of
https://github.com/slawkens/myaac.git
synced 2025-12-10 02:50:46 +01:00
Make $action global (required by many scripts)
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user