*/
class SaveTag extends BaseModule
{
- public static function init()
+ public static function init(array $parameters = [])
{
if (!local_user()) {
info(L10n::t('You must be logged in to use this module'));
}
}
- public static function rawContent()
+ public static function rawContent(array $parameters = [])
{
$a = self::getApp();
$logger = $a->getLogger();
- $term = XML::unescape(trim(defaults($_GET, 'term', '')));
+ $term = XML::unescape(trim($_GET['term'] ?? ''));
// @TODO: Replace with parameter from router
$item_id = (($a->argc > 1) ? intval($a->argv[1]) : 0);
}
// return filer dialog
- $filetags = PConfig::get(local_user(), 'system', 'filetags');
+ $filetags = PConfig::get(local_user(), 'system', 'filetags', '');
$filetags = Model\FileTag::fileToArray($filetags);
$tpl = Renderer::getMarkupTemplate("filer_dialog.tpl");