Welcome Guest, Not a member yet? Register   Sign In
PyroCMS v0.9.7.4 - an open-source modular general purpose CMS

[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.


Messages In This Thread
PyroCMS v0.9.7.4 - an open-source modular general purpose CMS - by El Forum - 10-26-2009, 11:13 AM



Theme © iAndrew 2016 - Forum software by © MyBB