From 48715bbb7d70f5c1bfeb07972d8d4b93603e1714 Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Wed, 5 Oct 2011 23:22:25 -0500 Subject: [PATCH] fixed bug in view composers. changed crypter alias. --- application/config/aliases.php | 2 +- laravel/view.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/application/config/aliases.php b/application/config/aliases.php index faba2422..f9a29dea 100644 --- a/application/config/aliases.php +++ b/application/config/aliases.php @@ -26,7 +26,7 @@ 'Config' => 'Laravel\\Config', 'Controller' => 'Laravel\\Controller', 'Cookie' => 'Laravel\\Cookie', - 'Crypter' => 'Laravel\\Crypter', + 'Crypter' => 'Laravel\\Security\\Crypter', 'DB' => 'Laravel\\Database\\Manager', 'Eloquent' => 'Laravel\\Database\\Eloquent\\Model', 'File' => 'Laravel\\File', diff --git a/laravel/view.php b/laravel/view.php index 47c32e2e..cd54d553 100644 --- a/laravel/view.php +++ b/laravel/view.php @@ -131,7 +131,7 @@ protected static function name($name) // could have an array value in which a "name" key exists. foreach (static::$composers as $key => $value) { - if ($name === $value or (isset($value['name']) and $name === $value['name'])) { return $key; } + if ($name === $value or (is_array($value) and $name === Arr::get($value, 'name'))) return $key; } }