Problem renaming the body name

See all posts See thread Reply

Re: Problem renaming the body name new!
by colin, 18 years, 1 month ago
This is normal. If you want to keep the hyphen, you can either do:
$foo->file_safe_name = false;
or edit the class as following, replacing
$this->file_dst_name_body = str_replace(array(' ', '-'), array('_','_'), $this->file_dst_name_body) ;
$this->file_dst_name_body = ereg_replace('[^A-Za-z0-9_]', '', $this->file_dst_name_body) ;
with
$this->file_dst_name_body = str_replace(' ', '_', $this->file_dst_name_body) ;
$this->file_dst_name_body = ereg_replace('[^A-Za-z0-9_-]', '', $this->file_dst_name_body) ;
Reply