mirror of
https://github.com/slawkens/myaac.git
synced 2025-04-29 10:49:22 +02:00
Make $action global (required by many scripts)
This commit is contained in:
parent
b047f73fe6
commit
31d2a3bde8
@ -51,6 +51,7 @@ $hooks = app()->get('hooks');
|
|||||||
require_once SYSTEM . 'twig.php';
|
require_once SYSTEM . 'twig.php';
|
||||||
|
|
||||||
// action, used by many pages
|
// action, used by many pages
|
||||||
|
global $action;
|
||||||
$action = $_REQUEST['action'] ?? '';
|
$action = $_REQUEST['action'] ?? '';
|
||||||
define('ACTION', $action);
|
define('ACTION', $action);
|
||||||
|
|
||||||
|
@ -9,7 +9,7 @@ class RouterService
|
|||||||
{
|
{
|
||||||
public function handleRouting(): array
|
public function handleRouting(): array
|
||||||
{
|
{
|
||||||
global $content, $template_path, $template;
|
global $content, $template_path, $template, $canEdit, $action;
|
||||||
|
|
||||||
$db = app()->get('database');
|
$db = app()->get('database');
|
||||||
$twig = app()->get('twig');
|
$twig = app()->get('twig');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user