Skip to content

Commit

Permalink
for php7.0 use SCRIPT_NAME instead of PHP_SELF
Browse files Browse the repository at this point in the history
  • Loading branch information
antonraharja committed Jul 21, 2016
1 parent ca9f965 commit e2af30c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/init.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
define('_SMTP_PORT_', $core_config['smtp']['port']);

$c_script_filename = __FILE__;
$c_php_self = $_SERVER['PHP_SELF'];
$c_php_self = $_SERVER['SCRIPT_NAME'];
$c_http_host = $_SERVER['HTTP_HOST'];

// base application directory
Expand Down

0 comments on commit e2af30c

Please sign in to comment.