Skip to content

Commit

Permalink
Change $this->settings to $options in the uploadCheckDir function whe…
Browse files Browse the repository at this point in the history
…n failure to create folder to store image
  • Loading branch information
simkimsia committed Mar 24, 2012
1 parent 9f4df82 commit 8de0b9a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Model/Behavior/MeioUploadBehavior.php
Original file line number Diff line number Diff line change
Expand Up @@ -453,7 +453,7 @@ function uploadCheckDir(&$model, $data) {
if (!is_dir($options['dir'])) {
if ($options['createDirectory']) {
$folder = &new Folder();
if (!$folder->create($options['dir'], $this->settings['folderPermission'])) {
if (!$folder->create($options['dir'], $options['folderPermission'])) {
trigger_error(__d('meio_upload', 'MeioUploadBehavior Error: The directory %s does not exist and cannot be created.', $options['dir']), E_USER_WARNING);
return false;
}
Expand Down

0 comments on commit 8de0b9a

Please sign in to comment.