diff options
author | Thomas Steur <thomas.steur@googlemail.com> | 2014-08-19 10:22:53 +0400 |
---|---|---|
committer | Thomas Steur <thomas.steur@googlemail.com> | 2014-08-19 10:22:53 +0400 |
commit | b64f149e6bae2392cedc59476a2d9fa992290d80 (patch) | |
tree | 7e3ec56bc94a8080d03f467cf405a24dd772befb /misc/cron | |
parent | 8d1a98d00338a3fbbb9fd9f8c23b3e74e17af62a (diff) |
refs #6013 #6012 make sure not to call console in case PHP is type CGI. In type CGI the argv should not be registered anyway unless maybe for instance register-argc-argv is enabled
Diffstat (limited to 'misc/cron')
-rw-r--r-- | misc/cron/archive.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/misc/cron/archive.php b/misc/cron/archive.php index 33efc8b319..015a827986 100644 --- a/misc/cron/archive.php +++ b/misc/cron/archive.php @@ -38,11 +38,14 @@ Using this 'archive.php' script is no longer recommended. Please use '/path/to/php $piwikHome/console core:archive " . implode('', array_slice($_SERVER['argv'], 1)) . "' instead. To get help use '/path/to/php $piwikHome/console core:archive --help' See also: http://piwik.org/docs/setup-auto-archiving/ + +If you cannot use the console because it requires CLI +try 'php archive.php -- url=http://your.piwik/path' ------------------------------------------------------- \n\n"; } -if (isset($_SERVER['argv']) && Piwik\Common::isPhpCliMode()) { +if (isset($_SERVER['argv']) && Piwik\Console::isSupported()) { $console = new Piwik\Console(); $console->init(); |