From 5617ba204f71e7b09eb4fa2f3146f1550ccca763 Mon Sep 17 00:00:00 2001 From: Alexandr D Date: Sat, 1 Mar 2014 17:29:14 +0400 Subject: [PATCH] Show "Settings" link only for enabled plugins --- web/themes/bootstrap/views/admin/settings.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/themes/bootstrap/views/admin/settings.php b/web/themes/bootstrap/views/admin/settings.php index 71f7c8b..97cc456 100644 --- a/web/themes/bootstrap/views/admin/settings.php +++ b/web/themes/bootstrap/views/admin/settings.php @@ -47,7 +47,7 @@ 'imageUrl'=>false, 'label'=>Yii::t('sourcebans', 'views.admin.settings.plugins.grid.settings'), 'url'=>'Yii::app()->createUrl("plugins/settings", array("id" => $data->id))', - 'visible'=>'$data->status && $data->getViewFile("settings")', + 'visible'=>'$data->status == SBPlugin::STATUS_ENABLED && $data->getViewFile("settings")', ), ), 'template'=>'{settings}',