diff options
author | vincent-peugnet <v.peugnet@free.fr> | 2020-04-26 18:34:59 +0200 |
---|---|---|
committer | vincent-peugnet <v.peugnet@free.fr> | 2020-04-26 18:34:59 +0200 |
commit | 877e0570ea7eb94e9698aab9147104f5251f55c9 (patch) | |
tree | 62fcff04bdf46de5ec504604ed67d0682b6bacdf /app/class/Medialist.php | |
parent | 53e6d5fde32a917718a0658fb95f366dc7dfc248 (diff) | |
download | wcms-877e0570ea7eb94e9698aab9147104f5251f55c9.tar.gz wcms-877e0570ea7eb94e9698aab9147104f5251f55c9.zip |
add bookmarks to media
Diffstat (limited to 'app/class/Medialist.php')
-rw-r--r-- | app/class/Medialist.php | 15 |
1 files changed, 14 insertions, 1 deletions
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(); } |