Update AdminPresenter.php

This commit is contained in:
n1rwana 2023-08-11 16:06:25 +03:00
parent 1f6d5cc5e3
commit 6ed8d439be
No known key found for this signature in database
GPG key ID: 184A60085ABF17D8

View file

@ -580,7 +580,7 @@ final class AdminPresenter extends OpenVKPresenter
$this->template->obj_id = $obj_id;
}
if ($this->queryParam("obj_type") !== NULL && $this->queryParam("obj_type") !== "any") {
$obj_type = CHANDLER_ROOT_CONF["preferences"]["logs"]["entitiesNamespace"] . $this->queryParam("obj_type");
$obj_type = "openvk\\Web\\Models\\Entities\\" . $this->queryParam("obj_type");
$filter["object_model"] = $obj_type;
$this->template->obj_type = $obj_type;
}