summaryrefslogtreecommitdiff
path: root/inc
diff options
context:
space:
mode:
authorSavetheinternet <savetheinternet@tinyboard.org>2011-12-03 15:54:30 +1100
committerSavetheinternet <savetheinternet@tinyboard.org>2011-12-03 15:54:30 +1100
commit3819379a6a0f6ad1088c6a42a96ac32e4bb226be (patch)
treefe6f773e5bf1b0254d4774166db5ed5828a70b68 /inc
parentc1209385574f97e788ca7a7aba9cc5b15e3dac16 (diff)
use 0.0.0.0 when in CLI mode
Diffstat (limited to 'inc')
-rw-r--r--inc/functions.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/inc/functions.php b/inc/functions.php
index efe5e0b5..e5feaeaa 100644
--- a/inc/functions.php
+++ b/inc/functions.php
@@ -13,6 +13,9 @@
function loadConfig() {
global $board, $config, $__ip, $debug, $__version;
+ if(!isset($_SERVER['REMOTE_ADDR']))
+ $_SERVER['REMOTE_ADDR'] = '0.0.0.0';
+
require 'inc/config.php';
if (file_exists('inc/instance-config.php')) {
require 'inc/instance-config.php';
@@ -108,7 +111,6 @@
if(_setlocale(LC_ALL, $config['locale']) === false) {
$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!');
-
}
if(extension_loaded('gettext')) {