Skip to content

Commit

Permalink
dont try to localize slug (#1107)
Browse files Browse the repository at this point in the history
  • Loading branch information
joshreisner authored and kiyote33 committed May 15, 2023
1 parent 8ed1ab9 commit ba38622
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions includes/variables.php
Original file line number Diff line number Diff line change
Expand Up @@ -589,10 +589,10 @@
$tsml_days = $tsml_days_order = $tsml_programs = $tsml_types_in_use = $tsml_strings = [];

//string url for the meeting finder, or false for no automatic archive page
if (!isset($tsml_slug)) $tsml_slug = null;
if (empty($tsml_slug)) $tsml_slug = 'meetings';

add_action('plugins_loaded', function () {
global $tsml_days, $tsml_days_order, $tsml_programs, $tsml_slug, $tsml_strings, $tsml_user_interface, $tsml_types_in_use;
global $tsml_days, $tsml_days_order, $tsml_programs, $tsml_strings, $tsml_user_interface, $tsml_types_in_use;

//load internationalization
load_plugin_textdomain('12-step-meeting-list', false, '12-step-meeting-list/languages');
Expand Down Expand Up @@ -1328,11 +1328,6 @@
}
}

//the location where the list will show up, eg https://intergroup.org/meetings
if ($tsml_slug === null) {
$tsml_slug = sanitize_title(__('meetings', '12-step-meeting-list'));
}

//strings that must be synced between the javascript and the PHP
$tsml_strings = [
'appointment' => __('Appointment', '12-step-meeting-list'),
Expand Down

0 comments on commit ba38622

Please sign in to comment.