Skip to content
Snippets Groups Projects
Commit 4515d72e authored by noackorama's avatar noackorama
Browse files

fixes #55

parent 4d8ac1e8
No related branches found
No related tags found
No related merge requests found
<?php <?php
StudipAutoloader::addAutoloadPath(__DIR__ . '/classes/'); StudipAutoloader::addAutoloadPath(__DIR__ . '/classes/');
require_once 'vendor/autoload.php'; require_once __DIR__ . '/vendor/autoload.php';
...@@ -174,8 +174,27 @@ class MarketRelease extends SimpleORMap { ...@@ -174,8 +174,27 @@ class MarketRelease extends SimpleORMap {
protected function createManifest($manifest) { protected function createManifest($manifest) {
$arr = array(); $arr = array();
foreach ($manifest as $index => $value) { foreach ($manifest as $index => $value) {
if (is_array($value)) {
if ($index == 'screenshots') {
$arr[] = "screenshots=".$value['path'];
foreach ($value['pictures'] as $one) {
$arr[] = "screenshots." . $one['source'] . "=" . $one['title'];
}
}
if ($index == 'additionalclasses') {
foreach ($value as $one) {
$arr[] = 'pluginclassname' . "=" . $one;
}
}
if ($index == 'additionalscreenshots') {
foreach ($value as $one) {
$arr[] = 'screenshot' . "=" . $one;
}
}
} else {
$arr[] = $index."=".$value; $arr[] = $index."=".$value;
} }
}
return implode("\n", $arr); return implode("\n", $arr);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment