Add config reader helper
This commit is contained in:
		| @@ -183,3 +183,12 @@ function uupApiWriteJson($path, $data) { | ||||
| function uupApiPacksExist($updateId) { | ||||
|     return file_exists('packs/'.$updateId.'.json.gz'); | ||||
| } | ||||
|  | ||||
| function uupApiConfigIsTrue($config) { | ||||
|     $data = uupDumpApiGetConfig(); | ||||
|  | ||||
|     if(!isset($data[$config])) | ||||
|         return false; | ||||
|  | ||||
|     return $data[$config] == true; | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user