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:
authormattab <matthieu.aubry@gmail.com>2014-03-17 03:19:42 +0400
committermattab <matthieu.aubry@gmail.com>2014-03-17 03:19:42 +0400
commit4a5aea880133030f3af514c98a9e5b174f9a1afd (patch)
tree57ae1eee976845b118460d962ad44f163600031a /core/FrontController.php
parent39ab1aeec87c066e5f92dd64e5b674bbecf0c836 (diff)
Remove assignCliParametersToRequest() and see if any test is failing
Diffstat (limited to 'core/FrontController.php')
-rw-r--r--core/FrontController.php19
1 files changed, 0 insertions, 19 deletions
diff --git a/core/FrontController.php b/core/FrontController.php
index f35b1a2e15..65f497acb8 100644
--- a/core/FrontController.php
+++ b/core/FrontController.php
@@ -262,7 +262,6 @@ class FrontController extends Singleton
);
Filechecks::dieIfDirectoriesNotWritable($directoriesToCheck);
- self::assignCliParametersToRequest();
Translate::loadEnglishTranslation();
@@ -455,24 +454,6 @@ class FrontController extends Singleton
}
-
- /**
- * Assign CLI parameters as if they were REQUEST or GET parameters.
- * You can trigger Piwik from the command line by
- * # /usr/bin/php5 /path/to/piwik/index.php -- "module=API&method=Actions.getActions&idSite=1&period=day&date=previous8&format=php"
- */
- public static function assignCliParametersToRequest()
- {
- if (isset($_SERVER['argc'])
- && $_SERVER['argc'] > 0
- ) {
- for ($i = 1; $i < $_SERVER['argc']; $i++) {
- parse_str($_SERVER['argv'][$i], $tmp);
- $_GET = array_merge($_GET, $tmp);
- }
- }
- }
-
private function handleProfiler()
{
if (!empty($_GET['xhprof'])) {