Skip to content
Snippets Groups Projects
Commit f511742b authored by Rasmus Fuhse's avatar Rasmus Fuhse
Browse files

re #9

parent 4fafd389
No related branches found
No related tags found
No related merge requests found
...@@ -5,6 +5,7 @@ class ExternController extends PluginController ...@@ -5,6 +5,7 @@ class ExternController extends PluginController
{ {
public function xml_action() { public function xml_action() {
$this->plugins = MarketPlugin::findBySQL("publiclyvisible = 1 AND approved = 1 ORDER BY name ASC"); $this->plugins = MarketPlugin::findBySQL("publiclyvisible = 1 AND approved = 1 ORDER BY name ASC");
URLHelper::setBaseUrl($GLOBALS['ABSOLUTE_URI_STUDIP']);
$this->set_layout(null); $this->set_layout(null);
$this->response->add_header('Content-Type', "text/xml"); $this->response->add_header('Content-Type', "text/xml");
} }
......
...@@ -6,13 +6,13 @@ ...@@ -6,13 +6,13 @@
homepage="<?= htmlReady(studip_utf8encode($marketplugin['url'])) ?>" homepage="<?= htmlReady(studip_utf8encode($marketplugin['url'])) ?>"
short_description="<?= htmlReady(studip_utf8encode($marketplugin['short_description'])) ?>" short_description="<?= htmlReady(studip_utf8encode($marketplugin['short_description'])) ?>"
description="<?= htmlReady(studip_utf8encode($marketplugin['description'])) ?>" description="<?= htmlReady(studip_utf8encode($marketplugin['description'])) ?>"
image="<?= htmlReady(studip_utf8encode($GLOBALS['ABSOLUTE_URI_STUDIP'].$marketplugin->getLogoURL())) ?>"> image="<?= htmlReady(studip_utf8encode($marketplugin->getLogoURL())) ?>">
<? foreach ($marketplugin->releases as $release) : ?> <? foreach ($marketplugin->releases as $release) : ?>
<release <release
version="<?= htmlReady(studip_utf8encode($release['version'])) ?>" version="<?= htmlReady(studip_utf8encode($release['version'])) ?>"
studipMinVersion="<?= htmlReady(studip_utf8encode($release['studip_min_version'])) ?>" studipMinVersion="<?= htmlReady(studip_utf8encode($release['studip_min_version'])) ?>"
studipMaxVersion="<?= htmlReady(studip_utf8encode($release['studip_min_version'])) ?>" studipMaxVersion="<?= htmlReady(studip_utf8encode($release['studip_min_version'])) ?>"
url="<?= htmlReady(studip_utf8encode($GLOBALS['ABSOLUTE_URI_STUDIP']."plugins.php/pluginmarket/presenting/download/" . $release->getId())) ?>" url="<?= htmlReady(studip_utf8encode($controller->url_for('presenting/download/' . $release->getId()))) ?>"
/> />
<? endforeach ?> <? endforeach ?>
</plugin> </plugin>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment