Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 14 additions & 2 deletions lib/Service/ConfigService.php
Original file line number Diff line number Diff line change
Expand Up @@ -424,9 +424,21 @@ public function getGSLookup(): string {


/**
* @return array
*/
* Returns the list of GSS mockup instances.
* @return array
*/
public function getGSSMockup(): array {
// Try reading from the database (app config)
$dbValue = $this->config->getAppValue(Application::APP_ID, 'gss.mockup', '');

if ($dbValue !== '') {
$decoded = json_decode($dbValue, true);
if (is_array($decoded)) {
return $decoded;
}
}

// Fall back to system config (config.php) for backward compatibility
return $this->config->getSystemValue('gss.mockup', []);
}

Expand Down