Skip to content

Commit

Permalink
don't use reversed DEFAULT name
Browse files Browse the repository at this point in the history
  • Loading branch information
dgershman committed Mar 9, 2019
1 parent d68f555 commit 783fa82
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions endpoints/_includes/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
class VolunteerLanguage
{
const UNSPECIFIED = 0;
const DEFAULT = "en";
const COMMON = "en";
}
static $settings_whitelist = [
'blocklist' => [ 'description' => '' , 'default' => '', 'overridable' => true, 'hidden' => false],
Expand All @@ -31,7 +31,7 @@ class VolunteerLanguage
'include_map_link' => [ 'description' => '' , 'default' => false, 'overridable' => true, 'hidden' => false],
'infinite_searching' => [ 'description' => '' , 'default' => false, 'overridable' => true, 'hidden' => false],
'jft_option' => [ 'description' => '' , 'default' => false, 'overridable' => true, 'hidden' => false],
'language' => [ 'description' => '' , 'default' => VolunteerLanguage::DEFAULT, 'overridable' => true, 'hidden' => false],
'language' => [ 'description' => '' , 'default' => VolunteerLanguage::COMMON, 'overridable' => true, 'hidden' => false],
'language_selections' => [ 'description' => '', 'default' => null, 'overridable' => true, 'hidden' => false],
'location_lookup_bias' => [ 'description' => '' , 'default' => 'country:us', 'overridable' => true, 'hidden' => false],
'meeting_result_sort' => [ 'description' => '' , 'default' => MeetingResultSort::TODAY, 'overridable' => true, 'hidden' => false],
Expand Down
2 changes: 1 addition & 1 deletion endpoints/helpline-dialer.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ function getCallConfig($twilioClient, $serviceBodyCallHandling, $tandem = Volunt
$volunteer_routing_parameters->volunteer_gender = isset($_SESSION['Gender']) ? $_SESSION['Gender'] : VolunteerGender::UNSPECIFIED;
$volunteer_routing_parameters->volunteer_shadow = $tandem == VolunteerShadowOption::TRAINEE ? VolunteerShadowOption::TRAINER : VolunteerShadowOption::UNSPECIFIED;
$volunteer_routing_parameters->volunteer_responder = VolunteerResponderOption::UNSPECIFIED;
$volunteer_routing_parameters->volunteer_language = setting('language') == VolunteerLanguage::DEFAULT ? VolunteerLanguage::UNSPECIFIED : setting("language");
$volunteer_routing_parameters->volunteer_language = setting('language') == VolunteerLanguage::COMMON ? VolunteerLanguage::UNSPECIFIED : setting("language");
if ($tandem == VolunteerShadowOption::UNSPECIFIED) {
$_SESSION["volunteer_routing_parameters"] = $volunteer_routing_parameters;
}
Expand Down

0 comments on commit 783fa82

Please sign in to comment.