Right place...
authorRoland Häder <roland@mxchange.org>
Fri, 30 Oct 2009 05:12:31 +0000 (05:12 +0000)
committerRoland Häder <roland@mxchange.org>
Fri, 30 Oct 2009 05:12:31 +0000 (05:12 +0000)
inc/js/js-uberwach.php
inc/libs/uberwach_functions.php

index 70ba75b..e85f11e 100644 (file)
@@ -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]
 ?>
index 8f2a8e7..bb70a1e 100644 (file)
@@ -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