X-Git-Url: https://git.nubati.net/cgi-bin/gitweb.cgi?p=phpfspot.git;a=blobdiff_plain;f=phpfspot.class.php;h=92c0fd2e69da2efa3c1d5a86a82f087f346d43dd;hp=f54a5d69c7a9a96c72d01409c64486b9d67f98f1;hb=37d9c8bf7eb7c4244f93d9ed780333ec1fa4ae86;hpb=4712f548702a1a7f9ad86360ebd1fa44356791a3 diff --git a/phpfspot.class.php b/phpfspot.class.php index f54a5d6..92c0fd2 100644 --- a/phpfspot.class.php +++ b/phpfspot.class.php @@ -3780,6 +3780,22 @@ class PHPFSPOT { } // get_photo_version_name() + /** + */ + public function is_valid_width($image_width) + { + if(in_array($image_width, + Array($this->cfg->thumb_width, + $this->cfg->photo_width, + $this->cfg->mini_width, + 30))) + + return true; + + return false; + + } // is_valid_width() + } // class PHPFSPOT ?>