From cd06fbc228eff8b408816c70fd37ed9f8b59a305 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Fri, 30 Oct 2009 05:12:31 +0000 Subject: [PATCH] Right place... --- inc/js/js-uberwach.php | 5 +---- inc/libs/uberwach_functions.php | 5 ++++- 2 files changed, 5 insertions(+), 5 deletions(-) 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 -- 2.30.2