diff options
author | mattab <matthieu.aubry@gmail.com> | 2014-11-19 10:25:34 +0300 |
---|---|---|
committer | mattab <matthieu.aubry@gmail.com> | 2014-11-19 10:25:34 +0300 |
commit | 368c1ac269b43c5324bb1ef2da1f3604e2a716cd (patch) | |
tree | 91951fca9153c6d37d1609806b20d6324fe3d804 /plugins/CoreConsole | |
parent | eb8ecc396d60bc3b83994fe6efcb6cd42668c795 (diff) |
Fixes #6695 show git:pull command whenever piwik is deployed from git (push and commit commands are still shown in development mode only)
Diffstat (limited to 'plugins/CoreConsole')
-rw-r--r-- | plugins/CoreConsole/Commands/GitPull.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/CoreConsole/Commands/GitPull.php b/plugins/CoreConsole/Commands/GitPull.php index 65151e2e3c..e69c13bf10 100644 --- a/plugins/CoreConsole/Commands/GitPull.php +++ b/plugins/CoreConsole/Commands/GitPull.php @@ -11,6 +11,7 @@ namespace Piwik\Plugins\CoreConsole\Commands; use Piwik\Development; use Piwik\Plugin\ConsoleCommand; +use Piwik\SettingsPiwik; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Output\OutputInterface; @@ -20,7 +21,7 @@ class GitPull extends ConsoleCommand { public function isEnabled() { - return Development::isEnabled(); + return SettingsPiwik::isGitDeployment(); } protected function configure() |