fuel/parser — pull request #51 by billmn (2012-07-25 14:23:06+00:00)
Title: Fixed searched paths for modules with Twig and removed paths duplicated

I'm not sure if this is the best method to fix the problem.

I will try to explain the problem using an example :

// REQUEST : Open admin/auth/login.html

// FOLDERS
// ---------------------------------------------------------
app/
...
modules/
module1/
views/
admin/
auth/
login.twig
forgot.twig
base.twig
...
// ---------------------------------------------------------

// auth/login.twig (VIEW NOT FOUND)
// ---------------------------------------------------------
{% extends 'admin/base.twig' %}

{% block contents %}
Login page
{% endblock %}
// ---------------------------------------------------------

// BEFORE : Searched paths (Parser/classes/view/twig.php line 45)
/app/modules/module1/views/admin/auth,
/app/views

// FIX : Add main Module's Views paths to searched paths

// AFTER : Searched paths
/app/modules/module1/views/admin/auth
/app/modules/module1/views
/app/views

Suggestions?