Index: trunk/extensions/OWALiteTracker/OWALiteTracker.php |
— | — | @@ -26,7 +26,7 @@ |
27 | 27 | return; |
28 | 28 | } |
29 | 29 | $text = "<script> var includeOWA = false; if( Geo ){\n"; |
30 | | - foreach( $condition as $wgOWAGeoTrackSites ){ |
| 30 | + foreach( $wgOWAGeoTrackSites as $condition ){ |
31 | 31 | $text .= "if (Geo.{$condition[0]} && Geo.{$condition[0]} == \"{$condition[1]}\"){ |
32 | 32 | if( !includeOWA ) { |
33 | 33 | includeOWA = true; |