thelia/thelia — pull request #653 by roadster31 (2014-08-27 21:30:57+00:00)
Title: Assets fix

This PR fixed a nasty side effect, which impacts the way assets are searched in the following use case :

```smarty
Here, default template for assets is "default"

{* Stylesheets *}
{stylesheets file='assets/css/styles.css'}

{/stylesheets}

-> Get a stylesheet in the "toto" template

{stylesheets file='assets/css/lestyle.css' template="toto"}

{/stylesheets}

-> the default template is now toto. The following assets will be searched in the 'toto' template, and will not be found.

{images file='assets/img/favicon.ico'}{/images}
```
The clone keyword in SmartyParser::getTemplateDefinition() sdolve the problem. All other changes is this PR are cosmetic.