login
This commit is contained in:
@ -14,9 +14,9 @@ $table->columns([
|
||||
]);
|
||||
$table->addAction(function ($row, $url){
|
||||
$path = $row['path'];
|
||||
$active_admin_theme = Option::where("key", "active_admin_theme")->first();
|
||||
$active_admin_theme = \kernel\modules\option\service\OptionService::getItem('active_admin_theme');
|
||||
$btn = "<a class='btn btn-primary' href='$url/activate/?p=$path' style='margin: 3px; width: 150px;' >Активировать</a>";
|
||||
if ($path === $active_admin_theme->value){
|
||||
if ($path === $active_admin_theme){
|
||||
$btn = "Активна";
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user