Allow custom profiler.js path, which makes jQuery dependency optional.

Signed-off-by: Dan Rogers <dan.rogers@bkwld.com>
This commit is contained in:
Dan Rogers 2013-01-02 17:41:07 -08:00
parent 8ff052cbdb
commit f4dd93ad67
1 changed files with 6 additions and 2 deletions

View File

@ -119,6 +119,10 @@
</ul> </ul>
</div> </div>
<script>window.jQuery || document.write("<script src='//ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js'>\x3C/script>")</script> @if (Config::get('application.profiler_js_src'))
<script>{{ file_get_contents(path('sys').'profiling/profiler.js') }}</script> <script>{{ file_get_contents(Config::get('application.profiler_js_src')) }}</script>
@else
<script>window.jQuery || document.write("<script src='//ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js'>\x3C/script>")</script>
<script>{{ file_get_contents(path('sys').'profiling/profiler.js') }}</script>
@endif
<!-- /ANBU - LARAVEL PROFILER --> <!-- /ANBU - LARAVEL PROFILER -->