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

update versions

parent b4d138af
No related branches found
No related tags found
No related merge requests found
...@@ -8,12 +8,10 @@ class PluginMarket extends StudIPPlugin implements SystemPlugin, HomepagePlugin ...@@ -8,12 +8,10 @@ class PluginMarket extends StudIPPlugin implements SystemPlugin, HomepagePlugin
static public function getStudipReleases() static public function getStudipReleases()
{ {
return array( return array(
'1.4', '1.5', '1.6', '1.7', '1.8', '1.4', '1.5', '1.6', '1.7', '1.8', '1.9', '1.10', '1.11',
'1.9', '1.10', '1.11', '2.0', '2.1', '2.2', '2.3', '2.4', '2.5',
'2.0', '2.1', '2.2', '2.3', '2.4',
'2.5',
'3.0', '3.1', '3.2', "3.3", "3.4", "3.5", '3.0', '3.1', '3.2', "3.3", "3.4", "3.5",
"4.0", "4.1", "4.2", "4.3" "4.0", "4.1", "4.2", "4.3", "4.4"
); );
} }
......
...@@ -149,9 +149,10 @@ class MarketRelease extends SimpleORMap { ...@@ -149,9 +149,10 @@ class MarketRelease extends SimpleORMap {
$this['studip_max_version'] = $manifest['studipMaxVersion']; $this['studip_max_version'] = $manifest['studipMaxVersion'];
if (!$this['studip_max_version']) { if (!$this['studip_max_version']) {
$versions = PluginMarket::getStudipReleases(); $versions = PluginMarket::getStudipReleases();
preg_match("/^(\d+\.\d+)/", StudipVersion::getStudipVersion(false), $matches);
$manifest['studipMaxVersion'] $manifest['studipMaxVersion']
= $this['studip_max_version'] = $this['studip_max_version']
= array_pop($versions).".99"; = $matches[1].".99";
if (!$this['studip_max_version']) { if (!$this['studip_max_version']) {
PageLayout::postMessage(MessageBox::info(sprintf(_("Die studipMaxVersion wurde auf %s gesetzt, da keine andere angegeben wurde."), $manifest['studipMaxVersion']))); PageLayout::postMessage(MessageBox::info(sprintf(_("Die studipMaxVersion wurde auf %s gesetzt, da keine andere angegeben wurde."), $manifest['studipMaxVersion'])));
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment