diff options
author | Andrew Dolgov <[email protected]> | 2017-04-27 00:24:29 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2017-04-27 00:24:29 +0300 |
commit | 7f4a24f8681f35d25077524692ba2236583cb732 (patch) | |
tree | 41dcc1cc2d3859ad1d8d1fd60b6138c9b520454a /plugins/af_zz_imgproxy | |
parent | 891df346377be014bbad14c229421d92cfd332ea (diff) | |
parent | c2744831cd319fb967a83dc643bdb8b25f6c0b02 (diff) |
Merge branch 'master' of git.fakecake.org:tt-rss
Diffstat (limited to 'plugins/af_zz_imgproxy')
-rw-r--r-- | plugins/af_zz_imgproxy/init.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/plugins/af_zz_imgproxy/init.php b/plugins/af_zz_imgproxy/init.php index 86f79c694..c85ec6427 100644 --- a/plugins/af_zz_imgproxy/init.php +++ b/plugins/af_zz_imgproxy/init.php @@ -80,7 +80,7 @@ class Af_Zz_ImgProxy extends Plugin { if (function_exists("imagecreate") && !isset($_REQUEST["text"])) { $img = imagecreate(450, 75); - $bg = imagecolorallocate($img, 255, 255, 255); + /*$bg =*/ imagecolorallocate($img, 255, 255, 255); $textcolor = imagecolorallocate($img, 255, 0, 0); imagerectangle($img, 0, 0, 450-1, 75-1, $textcolor); @@ -143,6 +143,9 @@ class Af_Zz_ImgProxy extends Plugin { return $url; } + /** + * @SuppressWarnings(PHPMD.UnusedFormalParameter) + */ function hook_render_article_cdm($article, $api_mode = false) { $need_saving = false; |