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

Changeset 9606


Ignore:
Timestamp:
Dec 20, 2008, 7:47:25 PM (11 years ago)
Author:
ogawa
Message:

#3209:replaced sfValidatorFile with opValidatorImageFile

File:
1 edited

Legend:

Unmodified
Added
Removed
  • OpenPNE3/plugins/opDiaryPlugin/trunk/lib/form/DiaryImageForm.class.php

    r9561 r9606  
    1717      'file3' => new sfWidgetFormInputFile(),
    1818    ));
    19 
    20     $options = array('required' => false, 'mime_types' => 'web_images');
    2119    $this->setValidators(array(
    22       'file1' => new sfValidatorFile($options),
    23       'file2' => new sfValidatorFile($options),
    24       'file3' => new sfValidatorFile($options),
     20      'file1' => new opValidatorImageFile(array('required' => false)),
     21      'file2' => new opValidatorImageFile(array('required' => false)),
     22      'file3' => new opValidatorImageFile(array('required' => false)),
    2523    ));
    2624  }
Note: See TracChangeset for help on using the changeset viewer.