API 1.0.0

Added error when files for selected language are not available.
This commit is contained in:
mkuba50 2017-10-06 16:03:39 +02:00
parent 4bed14f093
commit 2459374c3a
2 changed files with 5 additions and 1 deletions

View File

@ -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];
}

View File

@ -16,7 +16,7 @@ limitations under the License.
*/
function uupApiVersion() {
return '0.7.0-beta';
return '1.0.0';
}
function uupApiPrintBrand() {