diff --git a/bootstrap.php b/bootstrap.php index b9cb02afa51742b42db49e438b33de8cae0ef350..6169a3b0a924270b57be6cc81d3deebb494936c6 100755 --- a/bootstrap.php +++ b/bootstrap.php @@ -1,3 +1,3 @@ <?php StudipAutoloader::addAutoloadPath(__DIR__ . '/classes/'); -require_once 'vendor/autoload.php'; +require_once __DIR__ . '/vendor/autoload.php'; diff --git a/classes/MarketRelease.class.php b/classes/MarketRelease.class.php index 5146e594abe5fc892e9009b7d6519590d85f0051..c3ee241df2795b6f577e6d154703eedf49a31093 100755 --- a/classes/MarketRelease.class.php +++ b/classes/MarketRelease.class.php @@ -174,7 +174,26 @@ class MarketRelease extends SimpleORMap { protected function createManifest($manifest) { $arr = array(); foreach ($manifest as $index => $value) { - $arr[] = $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; + } } return implode("\n", $arr); }