Skip to content

Commit

Permalink
respect
Browse files Browse the repository at this point in the history
  • Loading branch information
Thorsten Staerk committed Nov 7, 2016
1 parent e00a0e0 commit fba06e0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions adaptivethumb.php
Expand Up @@ -49,6 +49,8 @@ function pichtml($code, $argv, $parser)
$tableopen=""; $tableclose="";
}
$result="$tableopen$linkopen$myimage$linkclose$tableclose";
global $wgAllowExternalImages;
if ($wgAllowExternalImages==false) {$result="";};
$result=preg_replace("/\n/","",$result);
return $result;
}
Expand Down

1 comment on commit fba06e0

@tstaerk
Copy link
Owner

@tstaerk tstaerk commented on fba06e0 Nov 7, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this used to read "respect dollar-wgAllowExternalImages"

Please sign in to comment.