Browse Source

change homepage settings to individual settingsArray

CauseFX 5 years ago
parent
commit
e082bb45b3
1 changed files with 3 additions and 1 deletions
  1. 3 1
      api/classes/organizr.class.php

+ 3 - 1
api/classes/organizr.class.php

@@ -3993,7 +3993,9 @@ class Organizr
 		$items = $this->getSettingsHomepage();
 		foreach ($items as $k => $v) {
 			if (strtolower($v['name']) === strtolower($item)) {
-				return $v;
+				$functionName = $v['settingsArray'];
+				return $this->$functionName();
+				
 			}
 		}
 		$this->setAPIResponse('error', 'Homepage item was not found', 404);