Skip to content

Commit

Permalink
Fixes invalid theme name when activating a theme using `php artisan t…
Browse files Browse the repository at this point in the history
…heme:activate` command.

Signed-off-by: crynobone <crynobone@gmail.com>
  • Loading branch information
crynobone committed Jul 4, 2014
1 parent f5cefe0 commit 72897e8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions docs/changes.md
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion src/View/Console/ActivateCommand.php
Expand Up @@ -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}].");
}

Expand Down

0 comments on commit 72897e8

Please sign in to comment.