Ignore:
Timestamp:
May 13, 2008 4:14:53 AM (16 years ago)
Author:
quinn
Message:

Fixed lots of misplings. I'm so embarrassed! ;P

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/ImageThumb.inc.php

    r331 r334  
    3333        'dest_file_perms' => 0600,
    3434
    35         // Permissions of autocreated directories. Must be at least 0700 with owner=apache.
     35        // Permissions of auto-created directories. Must be at least 0700 with owner=apache.
    3636        'dest_dir_perms' => 0700,
    3737
     
    6363        'dest_file_extension' => 'jpg',
    6464       
    65         // Type of scaling to perform, and sizes used to calculate max dimentions.
     65        // Type of scaling to perform, and sizes used to calculate max dimensions.
    6666        'scaling_type' => IMAGETHUMB_FIT_LARGER,
    6767        'width' => null,
     
    158158     * @param   array   $spec   The specifications for a size of output image.
    159159     * @param   int     $index  The position of the specification in the spec array
    160      *                          Use to overwrite existing spev array values.
     160     *                          Use to overwrite existing spec array values.
    161161     */
    162162    function setSpec($spec, $index=null)
     
    229229   
    230230    /*
    231     * Retreive a value of a thumb specification.
     231    * Retrieve a value of a thumb specification.
    232232    *
    233233    * @access   public
    234234    * @param    string  $key    Key to return. See _default_image_specs above for a list.
    235     * @param    int     $index  The index in the spec array of the value to retreive. The first if not specified.
     235    * @param    int     $index  The index in the spec array of the value to retrieve. The first if not specified.
    236236    * @return   mixed           Value of requested index.
    237237    * @author   Quinn Comendant <quinn@strangecode.com>
     
    297297        $app =& App::getInstance();
    298298
    299         // Source file determinted by provided file_name.
     299        // Source file determined by provided file_name.
    300300        $source_file = realpath(sprintf('%s/%s', $this->getParam('source_dir'), $file_name));
    301301       
     
    415415        }
    416416
    417         // If > 0, there was a problem thumbnailing.
     417        // If > 0, there was a problem thumb-nailing.
    418418        return 0 === $return_val;
    419419    }
     
    508508        list($source_image_width, $source_image_height, $source_image_type) = getimagesize($source_file);
    509509
    510         // Define destination image dimentions.
     510        // Define destination image dimensions.
    511511        switch ($spec['scaling_type']) {
    512512        case IMAGETHUMB_FIT_WIDTH :
Note: See TracChangeset for help on using the changeset viewer.