summaryrefslogtreecommitdiff
path: root/app/Module/SlideShowModule.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/Module/SlideShowModule.php')
-rw-r--r--app/Module/SlideShowModule.php9
1 files changed, 8 insertions, 1 deletions
diff --git a/app/Module/SlideShowModule.php b/app/Module/SlideShowModule.php
index de4c77bcb9..afb877829c 100644
--- a/app/Module/SlideShowModule.php
+++ b/app/Module/SlideShowModule.php
@@ -26,6 +26,7 @@ use Fisharebest\Webtrees\GedcomTag;
use Fisharebest\Webtrees\I18N;
use Fisharebest\Webtrees\Media;
use Fisharebest\Webtrees\Theme;
+use Fisharebest\Webtrees\View;
/**
* Class SlideShowModule
@@ -182,7 +183,13 @@ class SlideShowModule extends AbstractModule implements ModuleBlockInterface {
$content = I18N::translate('This family tree has no images to display.');
}
if ($template) {
- return Theme::theme()->formatBlock($id, $title, $class, $content);
+ return View::make('blocks/template', [
+ 'block' => str_replace('_', '-', $this->getName()),
+ 'id' => $block_id,
+ 'config_url' => '',
+ 'title' => $this->getTitle(),
+ 'content' => $content,
+ ]);
} else {
return $content;
}