From 877e0570ea7eb94e9698aab9147104f5251f55c9 Mon Sep 17 00:00:00 2001 From: vincent-peugnet Date: Sun, 26 Apr 2020 18:34:59 +0200 Subject: add bookmarks to media --- app/class/Medialist.php | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'app/class/Medialist.php') diff --git a/app/class/Medialist.php b/app/class/Medialist.php index c597505..e716845 100644 --- a/app/class/Medialist.php +++ b/app/class/Medialist.php @@ -127,7 +127,20 @@ class Medialist extends Item if (array_diff(self::TYPES, $this->type) != []) { $query['type'] = $this->type; } - return '%MEDIA?' . urldecode(http_build_query($query)) . '%'; + return urldecode(http_build_query($query)); + } + + /** + * Get the code to insert directly + */ + public function getcode(): string + { + return '%MEDIA?' . $this->getquery() . '%'; + } + + public function getadress(): string + { + return '?' . $this->getquery(); } -- cgit v1.2.3