]> git.mxchange.org Git - friendica.git/commitdiff
Change Module\Filer::content to rawContent to prevent full page to load in modal
authorHypolite Petovan <hypolite@mrpetovan.com>
Sun, 14 Apr 2019 12:57:27 +0000 (08:57 -0400)
committerHypolite Petovan <hypolite@mrpetovan.com>
Sun, 14 Apr 2019 12:57:27 +0000 (08:57 -0400)
src/Module/Filer.php

index 3b7d5175c7eb6f9d9672e1fc54f40e844b5d8f15..08c656ed388151665aa17c30b42716c4e0c51e83 100644 (file)
@@ -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;
        }
 }