Permalink
Browse files

Fix - Define global $modx

  • Loading branch information...
yama committed Dec 6, 2017
1 parent cc42201 commit fd93564edce2ec8a355237bc899dc5ccc4f9ae00
Showing with 2 additions and 0 deletions.
  1. +2 −0 assets/plugins/directresize/directResize.php
@@ -794,6 +794,8 @@ function gif2png($name){
function ConvertFromBackend($o, $escape= true)
{
global $modx;
$reg = "/<img[^>]*>/";
preg_match_all($reg, $o, $imgs, PREG_PATTERN_ORDER);
for($n=0;$n<count($imgs[0]);$n++)

0 comments on commit fd93564

Please sign in to comment.