Permalink
Browse files

Merge pull request #10 from jeromelebleu/fix-plugin_name

Fix plugin_name variable declaration in install function
  • Loading branch information...
thomascube committed Dec 22, 2015
2 parents c4a2261 + decafa6 commit 43f0938f2c4ce6885c5cb7c5c43d13e8fdc8b8a8
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/Roundcube/Composer/PluginInstaller.php
@@ -46,9 +46,9 @@ public function install(InstalledRepositoryInterface $repo, PackageInterface $pa
// post-install: activate plugin in Roundcube config
$config_file = $this->rcubeConfigFile();
$extra = $package->getExtra();
$plugin_name = $this->getPluginName($package);
if (is_writeable($config_file) && php_sapi_name() == 'cli') {
$plugin_name = $this->getPluginName($package);
$answer = $this->io->askConfirmation("Do you want to activate the plugin $plugin_name? [N|y] ", false);
if (true === $answer) {
$this->rcubeAlterConfig($plugin_name, true);

0 comments on commit 43f0938

Please sign in to comment.