1
0
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:
Thomas Zilio
2017-09-15 15:52:40 +02:00
parent 20b9869d64
commit 574e779654
3 changed files with 26 additions and 5 deletions

View File

@ -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']);