mirror of
https://github.com/openvk/chandler.git
synced 2025-03-31 21:43:59 +03:00
Update Log.php
This commit is contained in:
parent
8985dec499
commit
cf499d51e9
1 changed files with 6 additions and 10 deletions
|
@ -50,16 +50,12 @@ class Log extends DBEntity
|
|||
|
||||
function getObjectType(): string
|
||||
{
|
||||
return [
|
||||
"albums" => "Альбом",
|
||||
"groups" => "Сообщество",
|
||||
"profiles" => "Профиль",
|
||||
"comments" => "Комментарий",
|
||||
"ip" => "IP-адрес",
|
||||
"posts" => "Запись",
|
||||
"tickets" => "Вопрос",
|
||||
"tickets_comments" => "Комментарий к тикету",
|
||||
][$this->getRecord()->object_table] ?? $this->getRecord()->object_model;
|
||||
$type = tr("log_" . $this->getObjectTable());
|
||||
if ($type === "@log_" . $this->getObjectTable()) {
|
||||
return str_replace(CHANDLER_ROOT_CONF["preferences"]["logs"]["entitiesNamespace"], "", $this->getRecord()->object_model);
|
||||
} else {
|
||||
return $type;
|
||||
}
|
||||
}
|
||||
|
||||
function getObjectName(): string
|
||||
|
|
Loading…
Reference in a new issue