[eluser]dinhtrung[/eluser]
Sorry, I'm quite new to this forum so I don't know how to turn on syntax support. I wrote all code with HTML code tags, but it's seems incorrect. I'll read user guide.
The staff module has a little bug when uploading new image:
Severity: Notice --> Undefined variable: filename_hash var/www/pyrocms/application/libraries/MY_Upload.php 319
To make it work, I change:
Code:
function set_filename($path, $filename)
{
if ($this->encrypt_name == TRUE)
{
$filename_hash = md5($filename).$this->file_ext;
}
+ else $filename_hash = $this->file_name;
if ($this->overwrite == FALSE)
{
if(!file_exists($path.$filename_hash))
{
return $filename_hash;
}
I don't know if this is a correct way to fix this issue, but it worked for me.