Browse Source

Pass the path to the filter event.

Taylor Otwell 12 years ago
parent
commit
633c2bde83
1 changed files with 1 additions and 1 deletions
  1. 1 1
      laravel/view.php

+ 1 - 1
laravel/view.php

@@ -374,7 +374,7 @@ class View implements ArrayAccess {
 		// us do something like run the contents through Jade, etc.
 		if (Event::listeners('view.filter'))
 		{
-			return Event::first('view.filter', $content);
+			return Event::first('view.filter', array($content, $this->path));
 		}
 
 		return $content;