Skip to content

Commit

Permalink
Merge pull request #10 from jeromelebleu/fix-plugin_name
Browse files Browse the repository at this point in the history
Fix plugin_name variable declaration in install function
  • Loading branch information
thomascube committed Dec 22, 2015
2 parents c4a2261 + decafa6 commit 43f0938
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Roundcube/Composer/PluginInstaller.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 43f0938

Please sign in to comment.