From b9a71345868618ca2fe67df4f7b827b3636abb2e Mon Sep 17 00:00:00 2001 From: alopexc0de Date: Mon, 25 Feb 2013 17:49:15 -0500 Subject: [PATCH] Corrected spelling mistake and gave credit for most of the code --- img/helper.genthumb.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/img/helper.genthumb.php b/img/helper.genthumb.php index b127de6..7af928f 100644 --- a/img/helper.genthumb.php +++ b/img/helper.genthumb.php @@ -2,6 +2,7 @@ /*------------------------------------------ * Helper.GenThumb.php - Function for generating thumbnails on upload + * Copied from http://webcheatsheet.com/php/create_thumbnail_images.php and modified for my use * * Copyright (c) 2013 David Todd (c0de) of http://www.unps-gama.info and http://unps.us * for use with the image host (http://img.unps-gama.info) @@ -40,7 +41,7 @@ $h_height = $nh/2; $w_height = $nw/2; - if($w> $h){ // Debating weather or not to keep the cropping + if($w> $h){ // Debating whether or not to keep the cropping $adjusted_width = $w / $hm; $half_width = $adjusted_width / 2; $int_width = $half_width - $w_height; @@ -106,7 +107,7 @@ $h_height = $nh/2; $w_height = $nw/2; - if($w> $h){ // Debating weather or not to keep the cropping + if($w> $h){ // Debating whether or not to keep the cropping $adjusted_width = $w / $hm; $half_width = $adjusted_width / 2; $int_width = $half_width - $w_height;