Skip to content
Snippets Groups Projects
Unverified Commit c315d207 authored by Jan-Hendrik Willms's avatar Jan-Hendrik Willms Committed by GitHub
Browse files

Merge pull request #84 from tleilax/master

add url to marktplace in xml
parents fd12ae95 f71693bf
No related branches found
No related tags found
No related merge requests found
...@@ -19,7 +19,7 @@ class ExternController extends MarketController ...@@ -19,7 +19,7 @@ class ExternController extends MarketController
$plugins = MarketPlugin::findBySQL("publiclyvisible = 1 AND approved = 1 ORDER BY name ASC"); $plugins = MarketPlugin::findBySQL("publiclyvisible = 1 AND approved = 1 ORDER BY name ASC");
foreach ($plugins as $plugin) { 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, 'displayname' => $plugin->name,
'name' => $plugin->pluginname, 'name' => $plugin->pluginname,
'homepage' => $plugin->url, 'homepage' => $plugin->url,
...@@ -27,14 +27,15 @@ class ExternController extends MarketController ...@@ -27,14 +27,15 @@ class ExternController extends MarketController
'description' => $plugin->description, 'description' => $plugin->description,
'image' => $plugin->getLogoURL(true), 'image' => $plugin->getLogoURL(true),
'score' => $plugin['rating'], 'score' => $plugin['rating'],
))); 'marketplace_url' => $this->absolute_url_for("presenting/details/{$plugin->id}"),
]));
foreach ($plugin->releases as $release) { 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, 'version' => $release->version,
'studipMinVersion' => $release->studip_min_version, 'studipMinVersion' => $release->studip_min_version,
'studipMaxVersion' => $release->studip_max_version, 'studipMaxVersion' => $release->studip_max_version,
'url' => $this->absolute_url_for('presenting/download/' . $release->id), 'url' => $this->absolute_url_for('presenting/download/' . $release->id),
))); ]));
} }
} }
...@@ -65,4 +66,4 @@ class ExternController extends MarketController ...@@ -65,4 +66,4 @@ class ExternController extends MarketController
} }
$this->render_json($output); $this->render_json($output);
} }
} }
\ No newline at end of file
pluginname=PluginMarktplatz pluginname=PluginMarktplatz
pluginclassname=PluginMarket pluginclassname=PluginMarket
origin=studip origin=studip
version=1.0.16 version=1.0.17
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment