3d60 Code | Elggzone 1f9c

Copy language directory

Posted on Jun 27, 2010 in Code, Tips & Tricks | 0 comments

Copy language directory

I test Elgg themes, widgets and language files on localhost, and occasionally need to do a clean Elgg installation. Once done, all language files, more than 36 must be moved to the proper folders. Not a big deal but this little function can do the job and copy an entire directory with language files to the new elgg installation. Just insert the paths to source and destination directories and run the script, then your language files will be copied to the appropriate folders. $src = 'path/'; $dst = 'path/'; function recurse_copy($src,$dst) { $dir =...

Read More
0