From b4b67aa13644a921cf7f67468740c67f76f17552 Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Sun, 14 Apr 2019 08:57:27 -0400 Subject: [PATCH] Change Module\Filer::content to rawContent to prevent full page to load in modal --- src/Module/Filer.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/Module/Filer.php b/src/Module/Filer.php index 3b7d5175c7..08c656ed38 100644 --- a/src/Module/Filer.php +++ b/src/Module/Filer.php @@ -22,7 +22,7 @@ class Filer extends BaseModule } } - public static function content() + public static function rawContent() { $a = self::getApp(); $logger = $a->getLogger(); @@ -44,9 +44,11 @@ class Filer extends BaseModule $filetags = explode(",", $filetags); $tpl = Renderer::getMarkupTemplate("filer_dialog.tpl"); - return Renderer::replaceMacros($tpl, [ + echo Renderer::replaceMacros($tpl, [ '$field' => ['term', L10n::t("Save to Folder:"), '', '', $filetags, L10n::t('- select -')], '$submit' => L10n::t('Save'), ]); + + exit; } } -- 2.39.5