From e8188911ccbdab0473f7deef630d2083fd8fe44a Mon Sep 17 00:00:00 2001
From: Andreas Gohr <andi@splitbrain.org>
Date: Sun, 6 Feb 2011 18:11:50 +0100
Subject: [PATCH] hide security check image if everything is alright

---
 inc/html.php | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/inc/html.php b/inc/html.php
index 3afa4862f..c91888494 100644
--- a/inc/html.php
+++ b/inc/html.php
@@ -1443,7 +1443,8 @@ function html_admin(){
     // @todo: could be checked and only displayed if $conf['savedir'] is under the web root
     echo '<a style="border:none; float:right;" target="_blank"
             href="http://www.dokuwiki.org/security#web_access_security">
-            <img src="data/security.png" alt="Broken image? Everything\'s alright!" /></a>';
+            <img src="data/security.png" alt="Your data directory seems to be protected properly."
+             onerror="this.parentNode.style.display=\'none\'" /></a>';
 
     print p_locale_xhtml('admin');
 
-- 
GitLab