Permalink
Browse files

dont show profiler bar on ajax request.

  • Loading branch information...
taylorotwell committed Apr 4, 2012
1 parent 02db986 commit 507bba60caf3a5fe1ec31604943bfa38b12e79d9
Showing with 5 additions and 1 deletion.
  1. +5 −1 laravel/profiling/profiler.php
@@ -4,6 +4,7 @@
use Laravel\File;
use Laravel\Event;
use Laravel\Config;
+use Laravel\Request;
class Profiler {
@@ -21,7 +22,10 @@ class Profiler {
*/
public static function render()
{
- return render('path: '.__DIR__.'/template'.BLADE_EXT, static::$data);
+ if ( ! Request::ajax())
+ {
+ return render('path: '.__DIR__.'/template'.BLADE_EXT, static::$data);
+ }
}
/**

0 comments on commit 507bba6

Please sign in to comment.