Browse Source

fixed test break.

tags/2.0.0-beta
Qiang Xue 11 years ago
parent
commit
c4f4e52a5a
  1. 2
      framework/yii/helpers/BaseFileHelper.php

2
framework/yii/helpers/BaseFileHelper.php

@ -177,7 +177,7 @@ class BaseFileHelper
$from = $src . DIRECTORY_SEPARATOR . $file;
$to = $dst . DIRECTORY_SEPARATOR . $file;
if (static::filterPath($from, $options)) {
if (!isset($options['beforeCopy']) || !call_user_func($options['beforeCopy'], $from, $to)) {
if (isset($options['beforeCopy']) && !call_user_func($options['beforeCopy'], $from, $to)) {
continue;
}
if (is_file($from)) {

Loading…
Cancel
Save