Display none only if protection is enabled

This commit is contained in:
Michal Čihař 2013-07-30 09:40:56 +02:00
parent 66fe475d4f
commit da4042fb6c

View File

@ -531,7 +531,9 @@ class PMA_Header
$retval = '<meta charset="utf-8" />';
$retval .= '<meta name="robots" content="noindex,nofollow" />';
$retval .= '<meta http-equiv="X-UA-Compatible" content="IE=Edge">';
$retval .= '<style>html{display: none;}</style>';
if (! $GLOBALS['cfg']['AllowThirdPartyFraming']) {
$retval .= '<style>html{display: none;}</style>';
}
return $retval;
}