summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorGreg Roach <greg@subaqua.co.uk>2021-02-07 08:19:12 +0000
committerGreg Roach <greg@subaqua.co.uk>2021-02-07 08:26:22 +0000
commit88ca476bf6e28ac8b7acb8dba1a15b89143be894 (patch)
tree256bfac29d308af912b0a65ab64942a65ba59850 /app
parentbfaab54a7bdb208f1667959aa083f02dea8e38a1 (diff)
downloadwebtrees-88ca476bf6e28ac8b7acb8dba1a15b89143be894.tar.gz
webtrees-88ca476bf6e28ac8b7acb8dba1a15b89143be894.tar.bz2
webtrees-88ca476bf6e28ac8b7acb8dba1a15b89143be894.zip
Census table - move rows from head to body
Diffstat (limited to 'app')
-rw-r--r--app/Census/CensusColumnNationality.php2
-rw-r--r--app/CommonMark/CensusTableParser.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/app/Census/CensusColumnNationality.php b/app/Census/CensusColumnNationality.php
index 13adeda225..96aa4dccf7 100644
--- a/app/Census/CensusColumnNationality.php
+++ b/app/Census/CensusColumnNationality.php
@@ -27,7 +27,7 @@ use Fisharebest\Webtrees\Individual;
*/
class CensusColumnNationality extends AbstractCensusColumn implements CensusColumnInterface
{
- /** @var array Convert a country name to a nationality */
+ // Convert a country name to a nationality
private const NATIONALITIES = [
'England' => 'British',
'Scotland' => 'British',
diff --git a/app/CommonMark/CensusTableParser.php b/app/CommonMark/CensusTableParser.php
index 45fd420aa4..b5162edb59 100644
--- a/app/CommonMark/CensusTableParser.php
+++ b/app/CommonMark/CensusTableParser.php
@@ -92,7 +92,7 @@ class CensusTableParser implements BlockParserInterface
while ($lines !== []) {
$line = array_shift($lines);
$row = $this->parseRow($line, TableCell::TYPE_BODY);
- $table->getHead()->appendChild($row);
+ $table->getBody()->appendChild($row);
}
$context->replaceContainerBlock($table);