Explorar o código

change homepage settings to individual settingsArray

CauseFX %!s(int64=5) %!d(string=hai) anos
pai
achega
e082bb45b3
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  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);