liip/LiipThemeBundle — pull request #34 by asm89 (2012-02-21 10:21:35+00:00)
Title: Fixed template lookup in themes directory in app/ directory

When looking up themes in the app directory the `views` part of the path wouldn't be removed. This PR fixes that and changes an invalid test case.

For reference (the difference is in step 1):
Old behaviour:
1. Override themes directory: `app/Resources/themes/phone/BundleName/views/template.html.twig`
2. Override view directory: `app/Resources/BundleName/views/template.html.twig`
3. Bundle theme directory: `src/BundleName/Resources/themes/phone/template.html.twig`
4. Bundle view directory: `src/BundleName/Resources/views/template.html.twig`

New behaviour:
1. Override themes directory: `app/Resources/themes/phone/BundleName/template.html.twig`
2. Override view directory: `app/Resources/BundleName/views/template.html.twig`
3. Bundle theme directory: `src/BundleName/Resources/themes/phone/template.html.twig`
4. Bundle view directory: `src/BundleName/Resources/views/template.html.twig`