From 24025ce6b155a5945be45d2b5e0b7c95ab312f5a Mon Sep 17 00:00:00 2001
From: mattab <matthieu.aubry@gmail.com>
Date: Sat, 30 Jan 2016 13:34:08 +1300
Subject: [PATCH] If current hots is localhost, do not show the SSL warning
 notification

---
 core/Plugin/ControllerAdmin.php | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/core/Plugin/ControllerAdmin.php b/core/Plugin/ControllerAdmin.php
index 37ce526b8b..e503a615e6 100644
--- a/core/Plugin/ControllerAdmin.php
+++ b/core/Plugin/ControllerAdmin.php
@@ -98,6 +98,11 @@ abstract class ControllerAdmin extends Controller
             return;
         }
 
+        if(Url::isLocalHost(Url::getCurrentHost())) {
+            return;
+        }
+
+
         $message = Piwik::translate('General_CurrentlyUsingUnsecureHttp');
 
         $message .= " ";
-- 
GitLab