mirror of
https://github.com/getgrav/grav.git
synced 2025-10-26 07:56:07 +01:00
Add support for theme stream wrappers
This commit is contained in:
@@ -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'])) {
|
||||
|
||||
Reference in New Issue
Block a user