Browse Source

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

Signed-off-by: Dan Rogers <dan.rogers@bkwld.com>
Dan Rogers 12 years ago
parent
commit
f4dd93ad67
1 changed files with 6 additions and 2 deletions
  1. 6 2
      laravel/profiling/template.blade.php

+ 6 - 2
laravel/profiling/template.blade.php

@@ -119,6 +119,10 @@
 	</ul>
 </div>
 
-<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>
+@if (Config::get('application.profiler_js_src'))
+	<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 -->