Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Steur <thomas.steur@gmail.com>2013-10-04 05:26:54 +0400
committerThomas Steur <thomas.steur@gmail.com>2013-10-04 05:26:54 +0400
commitce23c48f217013ae38fcfbdcf32067539a24a026 (patch)
tree3e413af2762f98861946b833a2546559fbb479ad /console
parentb3257ef1ba4ec0772ca2a9a7222049f85a5a7cd3 (diff)
refs #4121 make sure we are in cli mode
Diffstat (limited to 'console')
-rwxr-xr-xconsole4
1 files changed, 4 insertions, 0 deletions
diff --git a/console b/console
index fd2581091f..8c99a38d04 100755
--- a/console
+++ b/console
@@ -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