From 8be45249cbb044f454ed43cd54f5f883603bf9f1 Mon Sep 17 00:00:00 2001 From: Benjamin Renard Date: Wed, 26 Aug 2020 16:11:21 +0200 Subject: [PATCH] LSformRule :: imagesize: use self :: log_debug() instead of LSdebug() --- src/includes/class/class.LSformRule_imagesize.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/includes/class/class.LSformRule_imagesize.php b/src/includes/class/class.LSformRule_imagesize.php index 5d0c21a1..000d789a 100644 --- a/src/includes/class/class.LSformRule_imagesize.php +++ b/src/includes/class/class.LSformRule_imagesize.php @@ -43,29 +43,29 @@ class LSformRule_imagesize extends LSformRule { public static function validate($value, $options=array(), &$formElement) { $file = LSsession :: getTmpFile($value); list($width, $height, $type, $attr) = getimagesize($file); - LSdebug("LSformRule_imagesize :: validate() : image size is $width x $height, type=$type, attr='$attr'"); + self :: log_debug("validate(): image size is $width x $height, type=$type, attr='$attr'"); $maxWidth = LSconfig :: get('params.maxWidth', null, 'int', $options); if ($maxWidth && $width > $maxWidth) { - LSdebug("LSformRule_imagesize :: validate() : max width error ($width > $maxWidth)"); + self :: log_debug("validate(): max width error ($width > $maxWidth)"); return; } $minWidth = LSconfig :: get('params.minWidth', null, 'int', $options); if ($minWidth && $width < $minWidth) { - LSdebug("LSformRule_imagesize :: validate() : min width error ($width < $minWidth)"); + self :: log_debug("validate(): min width error ($width < $minWidth)"); return; } $maxHeight = LSconfig :: get('params.maxHeight', null, 'int', $options); if ($maxHeight && $height > $maxHeight) { - LSdebug("LSformRule_imagesize :: validate() : max height error ($height > $maxHeight)"); + self :: log_debug("validate(): max height error ($height > $maxHeight)"); return; } $minHeight = LSconfig :: get('params.minHeight', null, 'int', $options); if ($minHeight && $height < $minHeight) { - LSdebug("LSformRule_imagesize :: validate() : min height error ($height < $minHeight)"); + self :: log_debug("validate(): min height error ($height < $minHeight)"); return; }