use 0.0.0.0 when in CLI mode
This commit is contained in:
parent
c120938557
commit
3819379a6a
@ -13,6 +13,9 @@
|
|||||||
function loadConfig() {
|
function loadConfig() {
|
||||||
global $board, $config, $__ip, $debug, $__version;
|
global $board, $config, $__ip, $debug, $__version;
|
||||||
|
|
||||||
|
if(!isset($_SERVER['REMOTE_ADDR']))
|
||||||
|
$_SERVER['REMOTE_ADDR'] = '0.0.0.0';
|
||||||
|
|
||||||
require 'inc/config.php';
|
require 'inc/config.php';
|
||||||
if (file_exists('inc/instance-config.php')) {
|
if (file_exists('inc/instance-config.php')) {
|
||||||
require 'inc/instance-config.php';
|
require 'inc/instance-config.php';
|
||||||
@ -108,7 +111,6 @@
|
|||||||
if(_setlocale(LC_ALL, $config['locale']) === false) {
|
if(_setlocale(LC_ALL, $config['locale']) === false) {
|
||||||
$error = function_exists('error') ? 'error' : 'basic_error_function_because_the_other_isnt_loaded_yet';
|
$error = function_exists('error') ? 'error' : 'basic_error_function_because_the_other_isnt_loaded_yet';
|
||||||
$error('The specified locale (' . $config['locale'] . ') does not exist on your platform!');
|
$error('The specified locale (' . $config['locale'] . ') does not exist on your platform!');
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if(extension_loaded('gettext')) {
|
if(extension_loaded('gettext')) {
|
||||||
|
Loading…
Reference in New Issue
Block a user