Some hacks for missing extensions and XP:
[core.git] / inc / classes / main / console / class_ConsoleTools.php
index ef97485be4fa72e2f131e9d866d108610800b503..e6fdfda88f226b1485a4470b85da879c99b68848 100644 (file)
@@ -110,6 +110,9 @@ class ConsoleTools extends BaseFrameworkSystem {
                        if (isset($_SERVER['SESSION_SVR'])) {
                                // Resolve it
                                $ip = $helperInstance->resolveIpAddress($_SERVER['SESSION_SVR']);
+                       } elseif (isset($_SERVER['COMPUTERNAME'])) {
+                               // May happen on some XP systems, so also try this
+                               $ip = $helperInstance->resolveIpAddress($_SERVER['COMPUTERNAME']);
                        } else {
                                // Could not find our hostname
                                $helperInstance->debugOutput(sprintf("[%s:] WARNING: Cannot resolve my own IP address.",