diff options
author | Thomas Steur <thomas.steur@gmail.com> | 2013-10-04 05:26:54 +0400 |
---|---|---|
committer | Thomas Steur <thomas.steur@gmail.com> | 2013-10-04 05:26:54 +0400 |
commit | ce23c48f217013ae38fcfbdcf32067539a24a026 (patch) | |
tree | 3e413af2762f98861946b833a2546559fbb479ad /console | |
parent | b3257ef1ba4ec0772ca2a9a7222049f85a5a7cd3 (diff) |
refs #4121 make sure we are in cli mode
Diffstat (limited to 'console')
-rwxr-xr-x | console | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -7,5 +7,9 @@ define('PIWIK_USER_PATH', PIWIK_DOCUMENT_ROOT); require_once PIWIK_INCLUDE_PATH . '/vendor/autoload.php'; require_once PIWIK_INCLUDE_PATH . '/core/Loader.php'; +if (!Piwik\Common::isPhpCliMode()) { + exit; +} + $console = new Piwik\Console(); $console->run();
\ No newline at end of file |