forked from uup-dump/api
API 1.0.0
Added error when files for selected language are not available.
This commit is contained in:
parent
4bed14f093
commit
2459374c3a
4
get.php
4
get.php
@ -209,6 +209,10 @@ function uupGetFiles($updateId = 'c2a1d787-647b-486d-b264-f90f3782cdc6', $usePac
|
||||
unset($filesTemp, $temp, $val, $num);
|
||||
}
|
||||
|
||||
if(empty($filesKeys)) {
|
||||
return array('error' => 'NO_FILES');
|
||||
}
|
||||
|
||||
foreach($filesKeys as $val) {
|
||||
$filesNew[$val] = $files[$val];
|
||||
}
|
||||
|
@ -16,7 +16,7 @@ limitations under the License.
|
||||
*/
|
||||
|
||||
function uupApiVersion() {
|
||||
return '0.7.0-beta';
|
||||
return '1.0.0';
|
||||
}
|
||||
|
||||
function uupApiPrintBrand() {
|
||||
|
Loading…
Reference in New Issue
Block a user