From 72897e8b40b71a7afae2d1a170baf9576f847973 Mon Sep 17 00:00:00 2001 From: crynobone Date: Fri, 4 Jul 2014 19:57:41 +0800 Subject: [PATCH] Fixes invalid theme name when activating a theme using `php artisan theme:activate` command. Signed-off-by: crynobone --- docs/changes.md | 4 ++++ src/View/Console/ActivateCommand.php | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/docs/changes.md b/docs/changes.md index 3383c55..540b992 100644 --- a/docs/changes.md +++ b/docs/changes.md @@ -5,6 +5,10 @@ title: View Change Log ## Version 2.1 {#v2-1} +### v2.1.3 {#v2-1-3} + +* Fixes invalid theme name when activating a theme using `php artisan theme:activate` command. + ### v2.1.2 {#v2-1-2} * Add `php artisan theme:detect` and `php artisan theme:activate` command. diff --git a/src/View/Console/ActivateCommand.php b/src/View/Console/ActivateCommand.php index 5c83cea..b0db1b7 100644 --- a/src/View/Console/ActivateCommand.php +++ b/src/View/Console/ActivateCommand.php @@ -59,7 +59,7 @@ public function fire() throw new \InvalidArgumentException("Invalid Theme ID [{$id}]."); } - $this->laravel['orchestra.memory']->set("site.theme.{$group}", $themes[$id]->name); + $this->laravel['orchestra.memory']->set("site.theme.{$group}", $themes[$id]->uid); $this->info("Theme [{$themes[$id]->name}] activated on group [{$group}]."); }