diff --git a/plugins/Gravatar/Gravatar.php b/plugins/Gravatar/Gravatar.php index 9affe7fd5c..55b53b53a0 100644 --- a/plugins/Gravatar/Gravatar.php +++ b/plugins/Gravatar/Gravatar.php @@ -117,7 +117,7 @@ function hooks() { */ function csp_headers() { # Policy for images: Allow gravatar URL - if( config_get_global( 'show_avatar' ) !== OFF ) { + if( config_get( 'show_avatar' ) !== OFF ) { # Set CSP header header( "Content-Security-Policy: img-src 'self' " . self::getAvatarUrl() );