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
|
function getObjectType(): string
|
||||||
{
|
{
|
||||||
return [
|
$type = tr("log_" . $this->getObjectTable());
|
||||||
"albums" => "Альбом",
|
if ($type === "@log_" . $this->getObjectTable()) {
|
||||||
"groups" => "Сообщество",
|
return str_replace(CHANDLER_ROOT_CONF["preferences"]["logs"]["entitiesNamespace"], "", $this->getRecord()->object_model);
|
||||||
"profiles" => "Профиль",
|
} else {
|
||||||
"comments" => "Комментарий",
|
return $type;
|
||||||
"ip" => "IP-адрес",
|
}
|
||||||
"posts" => "Запись",
|
|
||||||
"tickets" => "Вопрос",
|
|
||||||
"tickets_comments" => "Комментарий к тикету",
|
|
||||||
][$this->getRecord()->object_table] ?? $this->getRecord()->object_model;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function getObjectName(): string
|
function getObjectName(): string
|
||||||
|
|
Loading…
Reference in a new issue