Skip to content

Commit

Permalink
show_avatar config in db doesn't work
Browse files Browse the repository at this point in the history
Fixes #21165
  • Loading branch information
vboctor committed Jul 1, 2016
1 parent 4c2047e commit 1ee1fa6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/Gravatar/Gravatar.php
Expand Up @@ -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() );
Expand Down

0 comments on commit 1ee1fa6

Please sign in to comment.