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
$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
}
pluginname=PluginMarktplatz
pluginclassname=PluginMarket
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.
Finish editing this message first!
Please register or to comment