mirror of
https://github.com/humhub/humhub.git
synced 2025-02-24 19:23:21 +01:00
Added warning that all module contents will be deleted when deactivating from console.
This commit is contained in:
parent
2f4d942257
commit
ad515aa335
@ -201,6 +201,10 @@ class ModuleController extends \yii\console\Controller
|
||||
*/
|
||||
public function actionDisable($moduleId)
|
||||
{
|
||||
if (! $this->confirm(Yii::t('AdminModule.console', 'All {moduleId} module content will be deleted. Continue?', ['moduleId' => $moduleId]), false)) {
|
||||
return 1;
|
||||
}
|
||||
|
||||
$this->stdout(Yii::t('AdminModule.console', "--- Disable module: {moduleId} ---\n\n", ['moduleId' => $moduleId]), Console::BOLD);
|
||||
|
||||
/** @var Module $module */
|
||||
|
Loading…
x
Reference in New Issue
Block a user