mishamx / yii-user

Yii PHP Framework extension for registration and management users accounts.
http://yii-user.2mx.org/
186 stars 154 forks source link

Change upload path when using Widget File Field still leads to 'assets' #78

Open rizanurhadi opened 10 years ago

rizanurhadi commented 10 years ago

I change upload path from widget parameters into 'images', but it still using 'assets' as upload path.

i modified components/UWfile.php line 60 to this, and it does the job. [code] if ($this->_new_file_path){ $this->_new_file_path .= $this->unique_dir($this->_new_file_path).'/'; } else { $this->_new_file_path = pathinfo($this->_old_file_path, PATHINFO_DIRNAME).'/'; } [/code] Sorry, I'm still new to this git hub thingie