Change Module\Filer::content to rawContent to prevent full page to load in modal

pull/7009/head
Hypolite Petovan 4 years ago
parent 19f474f50d
commit b4b67aa136
  1. 6
      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;
}
}

Loading…
Cancel
Save