ここの情報は古いです。ご理解頂いた上でお取り扱いください。

Changeset 6852


Ignore:
Timestamp:
Apr 30, 2008, 3:14:12 AM (11 years ago)
Author:
ebihara
Message:

OpenPNE_Img::set_output_format()を削除し、OpenPNE_Img_Generator::setOutputFormart()に統合した

Location:
OpenPNE/branches/work/ebihara/prj_renew_OpenPNE_Img/webapp/lib/OpenPNE
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • OpenPNE/branches/work/ebihara/prj_renew_OpenPNE_Img/webapp/lib/OpenPNE/Img.php

    r6851 r6852  
    124124
    125125        $this->set_source_filename();
    126         $this->set_output_format($this->requests['f']);
     126        $this->generator->setOutputFormat($this->requests['f']);
    127127        $this->set_cache_filename();
    128128
     
    350350     * @access protected
    351351     */
    352     function set_output_format($format = '')
    353     {
    354         if ($format) {
    355             $format = $this->generator->checkFormatString($format);
    356         } else {
    357             $format = $this->generator->checkFormatString($this->generator->getSourceFormat());
    358         }
    359         $this->generator->setOutputFormat($format);
    360     }
    361 
    362     /**
    363      * @access protected
    364      */
    365352    function set_cache_filename()
    366353    {
  • OpenPNE/branches/work/ebihara/prj_renew_OpenPNE_Img/webapp/lib/OpenPNE/Img/Generator.php

    r6849 r6852  
    109109    }
    110110
    111     function setOutputFormat($output_format)
     111    function setOutputFormat($output_format = '')
    112112    {
    113         $this->output_format = $output_format;
     113        if ($output_format) {
     114            $this->output_format = $this->checkFormatString($output_format);
     115        } else {
     116            $this->output_format = $this->checkFormatString($this->getSourceFormat());
     117        }
    114118    }
    115119
Note: See TracChangeset for help on using the changeset viewer.