Fix js path

Remove real path
This commit is contained in:
Nicolas Le Goff
2013-06-18 17:21:47 +02:00
parent 05fe6d79ad
commit 4eb702de93
2 changed files with 5 additions and 5 deletions

View File

@@ -530,12 +530,12 @@ class Application extends SilexApplication
$paths = array(); $paths = array();
if ($app['browser']->isTablet() || $app['browser']->isMobile()) { if ($app['browser']->isTablet() || $app['browser']->isMobile()) {
$paths[] = realpath($app['root.path'] . '/config/templates/mobile'); $paths[] = $app['root.path'] . '/config/templates/mobile';
$paths[] = realpath($app['root.path'] . '/templates/mobile'); $paths[] = $app['root.path'] . '/templates/mobile';
} }
$paths[] = realpath($app['root.path'] . '/config/templates/web'); $paths[] = $app['root.path'] . '/config/templates/web';
$paths[] = realpath($app['root.path'] . '/templates/web'); $paths[] = $app['root.path'] . '/templates/web';
$app['twig.loader.filesystem']->setPaths($paths); $app['twig.loader.filesystem']->setPaths($paths);

View File

@@ -7,7 +7,7 @@
<title>{{ app['phraseanet.registry'].get('GV_homeTitle') }} - {{ module_name }} </title> <title>{{ app['phraseanet.registry'].get('GV_homeTitle') }} - {{ module_name }} </title>
<link rel="stylesheet" href="{{ path('minifier', { 'f' : 'include/jslibs/jquery.mobile-1.2.1/jquery.mobile-1.2.1.css' }) }}" /> <link rel="stylesheet" href="{{ path('minifier', { 'f' : 'include/jslibs/jquery.mobile-1.2.1/jquery.mobile-1.2.1.css' }) }}" />
<script src="{{ path('minifier', { 'f' : 'assets/jquery/jquery.js' }) }}"></script> <script src="{{ path('minifier', { 'f' : 'assets/jquery/jquery.js' }) }}"></script>
<script src="{{ path('minifier', { 'f' : 'nclude/jslibs/jquery.mobile-1.2.1/jquery.mobile-1.2.1.js' }) }}"></script> <script src="{{ path('minifier', { 'f' : 'include/jslibs/jquery.mobile-1.2.1/jquery.mobile-1.2.1.js' }) }}"></script>
{% block stylesheet %}{% endblock %} {% block stylesheet %}{% endblock %}
{% block icon %}{% endblock %} {% block icon %}{% endblock %}
{% block javascript %}{% endblock %} {% block javascript %}{% endblock %}