Skip to content

Commit

Permalink
bugfix: gugik/prg: fixed gugik prg provider support in lms-teryt.php …
Browse files Browse the repository at this point in the history
…script
  • Loading branch information
chilek committed Jun 16, 2023
1 parent 1d25c77 commit 2b84047
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions bin/lms-teryt.php
Original file line number Diff line number Diff line change
Expand Up @@ -544,14 +544,14 @@ function get_teryt_file($ch, $type, $outfile)
return true;
}

$building_base_provider = ConfigHelper::getConfig('teryt.building_base_provider', 'gugik');
$building_base_provider_type = ConfigHelper::getConfig('teryt.building_base_provider', 'gugik');
if (isset($options['building-base-provider'])) {
$building_base_provider = $options['building-base-provider'];
$building_base_provider_type = $options['building-base-provider'];
}
if (!isset($supported_building_base_providers[$building_base_provider])) {
die('Building base provider \'' . $building_base_provider . '\' is not supported!' . PHP_EOL);
if (!isset($supported_building_base_providers[$building_base_provider_type])) {
die('Building base provider \'' . $building_base_provider_type . '\' is not supported!' . PHP_EOL);
}
$building_base_provider = $supported_building_base_providers[$building_base_provider];
$building_base_provider = $supported_building_base_providers[$building_base_provider_type];

if (isset($options['fetch'])) {
if (!function_exists('curl_init')) {
Expand Down

0 comments on commit 2b84047

Please sign in to comment.