joomla/joomla-cms — pull request #2509 by wonderslug (2013-11-13 22:52:11+00:00)
Title: Fix of copy template case where template name is same as a name in the path to the joomla instance

In the case where the path to the Joomla instance is the same as the template name, the `TemplatesModelTemplate->fixTemplateName` function replaces the old templates name in every location along the path not just in the ini file names.

This is just a simple fix to keep the directory path separate and only do the replace in the file name itself.