fix message text for enabling/disabling plugin
at artisan CLI
This commit is contained in:
parent
2d68b3c818
commit
42c10d7856
@ -16,7 +16,8 @@ class PluginDisableCommand extends Command
|
||||
$plugin = $plugins->get($this->argument('name'));
|
||||
if ($plugin) {
|
||||
$plugins->disable($this->argument('name'));
|
||||
$this->info(trans('admin.plugins.operations.disabled', ['plugin' => $plugin->title]));
|
||||
$title = trans($plugin->title);
|
||||
$this->info(trans('admin.plugins.operations.disabled', ['plugin' => $title]));
|
||||
} else {
|
||||
$this->warn(trans('admin.plugins.operations.not-found'));
|
||||
}
|
||||
|
@ -17,7 +17,8 @@ class PluginEnableCommand extends Command
|
||||
$result = $plugins->enable($name);
|
||||
if ($result === true) {
|
||||
$plugin = $plugins->get($name);
|
||||
$this->info(trans('admin.plugins.operations.enabled', ['plugin' => $plugin->title]));
|
||||
$title = trans($plugin->title);
|
||||
$this->info(trans('admin.plugins.operations.enabled', ['plugin' => $title]));
|
||||
} elseif ($result === false) {
|
||||
$this->warn(trans('admin.plugins.operations.not-found'));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user