From 6ce32e753dba527d0b9df33561393f7151da5cd0 Mon Sep 17 00:00:00 2001 From: Matias Griese Date: Fri, 29 Aug 2014 12:07:40 +0300 Subject: [PATCH] Fix theme thumbnail urls --- system/src/Grav/Common/Themes.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/system/src/Grav/Common/Themes.php b/system/src/Grav/Common/Themes.php index 9b3ad7f4e..aab3f9808 100644 --- a/system/src/Grav/Common/Themes.php +++ b/system/src/Grav/Common/Themes.php @@ -65,11 +65,13 @@ class Themes $blueprint = $blueprints->get('blueprints'); $blueprint->name = $name; + /** @var Config $config */ + $config = $this->grav['config']; + // Find thumbnail. $thumb = "theme:///{$name}/thumbnail.jpg"; if (file_exists($thumb)) { - // TODO: use real URL with base path. - $blueprint->set('thumbnail', "/user/themes/{$name}/thumbnail.jpg"); + $blueprint->set('thumbnail', $config->get('system.base_url_relative') . "/user/themes/{$name}/thumbnail.jpg"); } // Load default configuration.