Skip to content

Commit

Permalink
[staging] Correcting User Actions Log Manager when debug language is (#…
Browse files Browse the repository at this point in the history
…24178)

enabled
  • Loading branch information
infograf768 authored and zero-24 committed Mar 22, 2019
1 parent 857fa53 commit 9d6238f
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion administrator/components/com_actionlogs/helpers/actionlogs.php
Expand Up @@ -193,6 +193,18 @@ public static function getHumanReadableLogMessage($log, $generateLinks = true)
$messageData['extension_name'] = Text::_($messageData['extension_name']);
}

// Translating application
if (isset($messageData['app']))
{
$messageData['app'] = Text::_($messageData['app']);
}

// Translating type
if (isset($messageData['type']))
{
$messageData['type'] = Text::_($messageData['type']);
}

$linkMode = Factory::getApplication()->get('force_ssl', 0) >= 1 ? 1 : -1;

foreach ($messageData as $key => $value)
Expand All @@ -208,7 +220,7 @@ public static function getHumanReadableLogMessage($log, $generateLinks = true)
$value = $links[$value];
}

$message = str_replace('{' . $key . '}', Text::_($value), $message);
$message = str_replace('{' . $key . '}', $value, $message);
}

return $message;
Expand Down

0 comments on commit 9d6238f

Please sign in to comment.