Reply to Re: Problem renaming the body name

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

Your reply

Name *
Email 
Title *
Text *
CAPTCHA image
Enter the code displayed on the image:
Click on the image to generate another one if it is hard to read it. The case is important