diff options
author | Andrew Dolgov <[email protected]> | 2020-08-19 10:02:38 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2020-08-19 10:02:38 +0300 |
commit | 048f5071383815be3b426784a7182aaa7e94138b (patch) | |
tree | bd68a24ae3478d681b73222e06e7cbfc07e9a436 | |
parent | f4253918a8233ab1920bbccad138553f3392754e (diff) |
fix for headline image error 500
-rw-r--r-- | init.php | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -312,7 +312,9 @@ class Api_Resize_Media extends Plugin { /** @noinspection PhpUnused */ function hook_article_image($enclosures, $content, $site_url) { - $article = $this->process_article(["headline" => ["content" => $content]]); + $width = (int) clean($_REQUEST["resize_width"]); + + $article = $this->process_article(["headline" => ["content" => $content]], $width); return ["", "", $article["content"]]; } |