From 713ce148a4e9c31b2ec318b0a6ae5f1a4a5d4cc7 Mon Sep 17 00:00:00 2001 From: El RIDO Date: Sat, 14 Sep 2019 09:50:47 +0200 Subject: [PATCH] address Codacy's concern that i is already defined --- js/legacy.js | 4 ++-- tpl/bootstrap.php | 2 +- tpl/page.php | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/js/legacy.js b/js/legacy.js index 82a6bd12..8f0b23f2 100644 --- a/js/legacy.js +++ b/js/legacy.js @@ -130,8 +130,8 @@ jQuery.Legacy = (function($) { } // whitelist localhost for development - for (var i = 0; i < hostname.length; i++) { - if (window.location.hostname === hostname[i]) { + for (var j = 0; j < hostname.length; j++) { + if (window.location.hostname === hostname[j]) { return true; } } diff --git a/tpl/bootstrap.php b/tpl/bootstrap.php index 42fac244..bb34288a 100644 --- a/tpl/bootstrap.php +++ b/tpl/bootstrap.php @@ -71,7 +71,7 @@ if ($MARKDOWN): endif; ?> - +