diff options
Diffstat (limited to 'famlist.php')
| -rw-r--r-- | famlist.php | 52 |
1 files changed, 26 insertions, 26 deletions
diff --git a/famlist.php b/famlist.php index 2295415be5..12abb2e310 100644 --- a/famlist.php +++ b/famlist.php @@ -37,12 +37,12 @@ if ($show_all_firstnames === 'yes') { $show_marnm = Filter::get('show_marnm', 'no|yes'); switch ($show_marnm) { -case 'no': -case 'yes': - Auth::user()->setPreference('famlist.php_show_marnm', $show_marnm); - break; -default: - $show_marnm = Auth::user()->getPreference('famlist.php_show_marnm'); + case 'no': + case 'yes': + Auth::user()->setPreference('famlist.php_show_marnm', $show_marnm); + break; + default: + $show_marnm = Auth::user()->getPreference('famlist.php_show_marnm'); } // Make sure selections are consistent. @@ -79,16 +79,16 @@ if ($show_all === 'yes') { } $url = '?surname=' . rawurlencode($surname) . '&ged=' . $controller->tree()->getNameUrl(); switch ($falpha) { - case '': - break; - case '@': - $legend .= ', ' . I18N::translateContext('Unknown given name', '…'); - $url .= '&falpha=' . rawurlencode($falpha) . '&ged=' . $controller->tree()->getNameUrl(); - break; - default: - $legend .= ', ' . Html::escape($falpha) . '…'; - $url .= '&falpha=' . rawurlencode($falpha) . '&ged=' . $controller->tree()->getNameUrl(); - break; + case '': + break; + case '@': + $legend .= ', ' . I18N::translateContext('Unknown given name', '…'); + $url .= '&falpha=' . rawurlencode($falpha) . '&ged=' . $controller->tree()->getNameUrl(); + break; + default: + $legend .= ', ' . Html::escape($falpha) . '…'; + $url .= '&falpha=' . rawurlencode($falpha) . '&ged=' . $controller->tree()->getNameUrl(); + break; } $show = 'indi'; // SURN list makes no sense here } elseif ($alpha === '@') { @@ -173,16 +173,16 @@ if ($show === 'indi' || $show === 'surn') { if ($show === 'surn') { // Show the surname list switch ($controller->tree()->getPreference('SURNAME_LIST_STYLE')) { - case 'style1': - echo FunctionsPrintLists::surnameList($surns, 3, true, 'famlist.php', $controller->tree()); - break; - case 'style3': - echo FunctionsPrintLists::surnameTagCloud($surns, 'famlist.php', true, $controller->tree()); - break; - case 'style2': - default: - echo FunctionsPrintLists::surnameTable($surns, 'famlist.php', $controller->tree()); - break; + case 'style1': + echo FunctionsPrintLists::surnameList($surns, 3, true, 'famlist.php', $controller->tree()); + break; + case 'style3': + echo FunctionsPrintLists::surnameTagCloud($surns, 'famlist.php', true, $controller->tree()); + break; + case 'style2': + default: + echo FunctionsPrintLists::surnameTable($surns, 'famlist.php', $controller->tree()); + break; } } else { // Show the list |
