From 48d82841243f80a502e5373e124d1c48bce99cda Mon Sep 17 00:00:00 2001 From: Matias Griese Date: Wed, 20 Aug 2014 20:55:27 +0300 Subject: [PATCH] Add support for theme stream wrappers --- system/src/Grav/Common/Theme.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/system/src/Grav/Common/Theme.php b/system/src/Grav/Common/Theme.php index d47e9b4fa..407dee282 100644 --- a/system/src/Grav/Common/Theme.php +++ b/system/src/Grav/Common/Theme.php @@ -32,7 +32,10 @@ class Theme extends Plugin // TODO: move $registered = stream_get_wrappers(); - $schemes = $this->config->get("themes.{$this->name}.streams.scheme"); + $schemes = $this->config->get( + "themes.{$this->name}.streams.scheme", + ['theme' => ['paths' => ["user/themes/{$this->name}"]]] + ); foreach ($schemes as $scheme => $config) { if (isset($config['paths'])) {