diff --git a/controllers/extern.php b/controllers/extern.php index 9f89019554479195c500df6ccf68d68a8f292776..6d6054627d6397cbe4ae5376945c25b41798af0a 100755 --- a/controllers/extern.php +++ b/controllers/extern.php @@ -19,7 +19,7 @@ class ExternController extends MarketController $plugins = MarketPlugin::findBySQL("publiclyvisible = 1 AND approved = 1 ORDER BY name ASC"); foreach ($plugins as $plugin) { - $xml_plugin = $xml_plugins->appendChild($this->create_xml_element($doc, 'plugin', null, array( + $xml_plugin = $xml_plugins->appendChild($this->create_xml_element($doc, 'plugin', null, [ 'displayname' => $plugin->name, 'name' => $plugin->pluginname, 'homepage' => $plugin->url, @@ -27,14 +27,15 @@ class ExternController extends MarketController 'description' => $plugin->description, 'image' => $plugin->getLogoURL(true), 'score' => $plugin['rating'], - ))); + 'marketplace_url' => $this->absolute_url_for("presenting/details/{$plugin->id}"), + ])); foreach ($plugin->releases as $release) { - $xml_plugin->appendChild($this->create_xml_element($doc, 'release', null, array( + $xml_plugin->appendChild($this->create_xml_element($doc, 'release', null, [ 'version' => $release->version, 'studipMinVersion' => $release->studip_min_version, 'studipMaxVersion' => $release->studip_max_version, 'url' => $this->absolute_url_for('presenting/download/' . $release->id), - ))); + ])); } } @@ -65,4 +66,4 @@ class ExternController extends MarketController } $this->render_json($output); } -} \ No newline at end of file +} diff --git a/plugin.manifest b/plugin.manifest index c903f4fefa4750350b9d6e19f0509ba629c8b40e..a1801331f0ff842abbcb52e286a254a6c1fb2500 100755 --- a/plugin.manifest +++ b/plugin.manifest @@ -1,4 +1,4 @@ pluginname=PluginMarktplatz pluginclassname=PluginMarket origin=studip -version=1.0.16 +version=1.0.17