]> git.mxchange.org Git - friendica.git/commitdiff
Fixes missing command line argument
authorMichael <heluecht@pirati.ca>
Sat, 31 Mar 2018 08:19:19 +0000 (08:19 +0000)
committerMichael <heluecht@pirati.ca>
Sat, 31 Mar 2018 08:19:19 +0000 (08:19 +0000)
src/App.php

index 2330bc118586026f119e80c0c3a5596d171a58f4..55623e1e812a6e07d9684817fbecf55b1dda02b1 100644 (file)
@@ -212,12 +212,6 @@ class App
                        . $this->basepath . DIRECTORY_SEPARATOR . 'library' . PATH_SEPARATOR
                        . $this->basepath);
 
-
-               if (is_array($_SERVER['argv']) && $_SERVER['argc'] > 1 && substr(end($_SERVER['argv']), 0, 4) == 'http') {
-                       $this->set_baseurl(array_pop($_SERVER['argv']));
-                       $_SERVER['argc'] --;
-               }
-
                if ((x($_SERVER, 'QUERY_STRING')) && substr($_SERVER['QUERY_STRING'], 0, 9) === 'pagename=') {
                        $this->query_string = substr($_SERVER['QUERY_STRING'], 9);
 
@@ -868,9 +862,6 @@ class App
 
                array_unshift($args, ((x($this->config, 'php_path')) && (strlen($this->config['php_path'])) ? $this->config['php_path'] : 'php'));
 
-               // add baseurl to args. cli scripts can't construct it
-               $args[] = $this->get_baseurl();
-
                for ($x = 0; $x < count($args); $x ++) {
                        $args[$x] = escapeshellarg($args[$x]);
                }