From: Roland Häder Date: Fri, 30 Oct 2009 05:12:31 +0000 (+0000) Subject: Right place... X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=cd06fbc228eff8b408816c70fd37ed9f8b59a305;p=mailer.git Right place... --- diff --git a/inc/js/js-uberwach.php b/inc/js/js-uberwach.php index 70ba75ba3e..e85f11e284 100644 --- a/inc/js/js-uberwach.php +++ b/inc/js/js-uberwach.php @@ -43,11 +43,8 @@ if (!defined('__SECURITY')) { return; } -// Detect remote address -$content['REMOTE_ADDR'] = detectRemoteAddr(); - // Simply load the JavaScript here -loadTemplate('js_uberwach', false, $content); +loadTemplate('js_uberwach'); // [EOF] ?> diff --git a/inc/libs/uberwach_functions.php b/inc/libs/uberwach_functions.php index 8f2a8e789a..bb70a1e103 100644 --- a/inc/libs/uberwach_functions.php +++ b/inc/libs/uberwach_functions.php @@ -43,8 +43,11 @@ if (!defined('__SECURITY')) { // Loads the snippet for the uberwach action function loadUberwachSnippet () { + // Detect IP address + $content['REMOTE_ADDR'] = detectRemoteAddr(); + // Simply load the template here - loadTemplate('uberwach_snippet'); + loadTemplate('uberwach_snippet', false, $content); } // Filter for displaying uberwach snippet