coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 miscellaneous => Topic started by: mreider on May 22, 2006, 09:52:36 AM

Title: The file renaming function
Post by: mreider on May 22, 2006, 09:52:36 AM
I'd like to change the way files are renamed - what file holds that function? Basically i'd like files to be renamed based on their title, and instead of underscores, dashes be used, and retain the .jpg ending.

If someone could point me in the right direction of which file I need to edit, that'd be great!
Title: Re: The file renaming function
Post by: Joachim Müller on May 22, 2006, 10:12:20 AM
edit include/functions.inc.php, find function replace_forbidden($str)and edit the function defintion accordingly if you know what you are doing. We don't recommend doing what you're up to. You might have to edit other places of the core code as well.