mirror of
https://github.com/devcode-it/openstamanager.git
synced 2025-06-05 22:09:38 +02:00
Aggiunta opzione di debug avanzato
This commit is contained in:
@ -586,6 +586,7 @@ function translateTemplate()
|
||||
global $id_module;
|
||||
global $id_record;
|
||||
global $id_plugin;
|
||||
global $operations;
|
||||
|
||||
$template = ob_get_clean();
|
||||
|
||||
@ -595,6 +596,17 @@ function translateTemplate()
|
||||
$template = str_replace('$id_plugin$', $id_plugin, $template);
|
||||
$template = str_replace('$id_record$', $id_record, $template);
|
||||
|
||||
// Completamento delle informazioni estese sulle azioni dell'utente
|
||||
if (Auth::check() && !empty($operations) && !empty($_SESSION['infos'])) {
|
||||
$user = Auth::user();
|
||||
|
||||
foreach ($_SESSION['infos'] as $value) {
|
||||
$operations->addRecord(\Monolog\Logger::INFO, $value, [
|
||||
'user' => $user['username'],
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
||||
// Annullo le notifiche (AJAX)
|
||||
if (isAjaxRequest()) {
|
||||
unset($_SESSION['infos']);
|
||||
|
Reference in New Issue
Block a user