We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4a63285 commit bf26eeeCopy full SHA for bf26eee
1 file changed
src/App.php
@@ -152,7 +152,11 @@ public static function definePaths($docroot)
152
$rootdir = str_replace('%2F', '/', rawurlencode($rootdir));
153
154
// Individuazione di $baseurl
155
- $baseurl = (isHTTPS(true) ? 'https' : 'http').'://'.$_SERVER['HTTP_HOST'].$rootdir;
+ if (php_sapi_name() == 'cli') {
156
+ $baseurl = '';
157
+ } else {
158
+ $baseurl = (isHTTPS(true) ? 'https' : 'http').'://'.$_SERVER['HTTP_HOST'].$rootdir;
159
+ }
160
161
// Impostazione delle variabili globali
162
define('DOCROOT', $docroot);
0 commit comments