@@ -243,7 +243,7 @@  | 
                                                    ||
| 243 | 243 | DebugBar::addThrowable($ex);  | 
                                                        
| 244 | 244 | |
| 245 | 245 | // The module has been deleted or is broken? Disable it.  | 
                                                        
| 246 | -                    Log::addConfigurationLog("Module {$module_name} is missing or broken - disabling it. " . $ex->getMessage(), null); | 
                                                        |
| 246 | +                    Log::addConfigurationLog("module {$module_name} is missing or broken - disabling it. " . $ex->getMessage(), null); | 
                                                        |
| 247 | 247 | Database::prepare(  | 
                                                        
| 248 | 248 | "UPDATE `##module` SET status = 'disabled' WHERE module_name = :module_name"  | 
                                                        
| 249 | 249 | )->execute([  | 
                                                        
@@ -72,14 +72,14 @@ discard block  | 
                                                    ||
| 72 | 72 |              if (strlen($match[1]) > strlen($match[2])) { | 
                                                        
| 73 | 73 | $match[2] = substr($match[1], 0, strlen($match[1]) - strlen($match[2])) . $match[2];  | 
                                                        
| 74 | 74 | }  | 
                                                        
| 75 | -            $ged_date = new Date("FROM {$cal} {$match[1]} TO {$cal} {$match[2]}"); | 
                                                        |
| 75 | +            $ged_date = new Date("from {$cal} {$match[1]} TO {$cal} {$match[2]}"); | 
                                                        |
| 76 | 76 | $view = 'year';  | 
                                                        
| 77 | 77 |          } else { | 
                                                        
| 78 | 78 | // advanced-year "decade/century wildcard"  | 
                                                        
| 79 | 79 |              if (preg_match('/^(\d+)(\?+)$/', $year, $match)) { | 
                                                        
| 80 | 80 |                  $y1       = $match[1] . str_replace('?', '0', $match[2]); | 
                                                        
| 81 | 81 |                  $y2       = $match[1] . str_replace('?', '9', $match[2]); | 
                                                        
| 82 | -                $ged_date = new Date("FROM {$cal} {$y1} TO {$cal} {$y2}"); | 
                                                        |
| 82 | +                $ged_date = new Date("from {$cal} {$y1} TO {$cal} {$y2}"); | 
                                                        |
| 83 | 83 | $view = 'year';  | 
                                                        
| 84 | 84 |              } else { | 
                                                        
| 85 | 85 |                  if ($year < 0) { | 
                                                        
@@ -191,14 +191,14 @@ discard block  | 
                                                    ||
| 191 | 191 |              if (strlen($match[1]) > strlen($match[2])) { | 
                                                        
| 192 | 192 | $match[2] = substr($match[1], 0, strlen($match[1]) - strlen($match[2])) . $match[2];  | 
                                                        
| 193 | 193 | }  | 
                                                        
| 194 | -            $ged_date = new Date("FROM {$cal} {$match[1]} TO {$cal} {$match[2]}"); | 
                                                        |
| 194 | +            $ged_date = new Date("from {$cal} {$match[1]} TO {$cal} {$match[2]}"); | 
                                                        |
| 195 | 195 | $view = 'year';  | 
                                                        
| 196 | 196 |          } else { | 
                                                        
| 197 | 197 | // advanced-year "decade/century wildcard"  | 
                                                        
| 198 | 198 |              if (preg_match('/^(\d+)(\?+)$/', $year, $match)) { | 
                                                        
| 199 | 199 |                  $y1       = $match[1] . str_replace('?', '0', $match[2]); | 
                                                        
| 200 | 200 |                  $y2       = $match[1] . str_replace('?', '9', $match[2]); | 
                                                        
| 201 | -                $ged_date = new Date("FROM {$cal} {$y1} TO {$cal} {$y2}"); | 
                                                        |
| 201 | +                $ged_date = new Date("from {$cal} {$y1} TO {$cal} {$y2}"); | 
                                                        |
| 202 | 202 | $view = 'year';  | 
                                                        
| 203 | 203 |              } else { | 
                                                        
| 204 | 204 |                  if ($year < 0) { | 
                                                        
@@ -187,8 +187,8 @@ discard block  | 
                                                    ||
| 187 | 187 |          foreach ($person->getChildFamilies() as $cfamily) { | 
                                                        
| 188 | 188 |              foreach ($cfamily->getSpouses() as $parent) { | 
                                                        
| 189 | 189 |                  echo FontAwesome::linkIcon('arrow-up', I18N::translate('Start at parents'), ['href' => route('descendants', ['ged'         => $parent->getTree()->getName(), | 
                                                        
| 190 | - 'xref' => $parent->getXref(),  | 
                                                        |
| 191 | - 'generations' => $generations,  | 
                                                        |
| 190 | + 'xref' => $parent->getXref(),  | 
                                                        |
| 191 | + 'generations' => $generations,  | 
                                                        |
| 192 | 192 | ]),  | 
                                                        
| 193 | 193 | ]);  | 
                                                        
| 194 | 194 | // only show the arrow for one of the parents  | 
                                                        
@@ -268,8 +268,8 @@ discard block  | 
                                                    ||
| 268 | 268 |              foreach ($spouse->getChildFamilies() as $cfamily) { | 
                                                        
| 269 | 269 |                  foreach ($cfamily->getSpouses() as $parent) { | 
                                                        
| 270 | 270 |                      echo FontAwesome::linkIcon('arrow-up', I18N::translate('Start at parents'), ['href' => route('descendants', ['ged'         => $parent->getTree()->getName(), | 
                                                        
| 271 | - 'xref' => $parent->getXref(),  | 
                                                        |
| 272 | - 'generations' => $generations,  | 
                                                        |
| 271 | + 'xref' => $parent->getXref(),  | 
                                                        |
| 272 | + 'generations' => $generations,  | 
                                                        |
| 273 | 273 | ]),  | 
                                                        
| 274 | 274 | ]);  | 
                                                        
| 275 | 275 | // only show the arrow for one of the parents  | 
                                                        
@@ -327,8 +327,8 @@ discard block  | 
                                                    ||
| 327 | 327 |                  FontAwesome::linkIcon('edit', I18N::translate('Edit the name'), [ | 
                                                        
| 328 | 328 | 'class' => 'btn btn-link',  | 
                                                        
| 329 | 329 |                      'href'  => route('edit-name', ['xref'    => $individual->getXref(), | 
                                                        
| 330 | - 'fact_id' => $fact->getFactId(),  | 
                                                        |
| 331 | - 'ged' => $individual->getTree()->getName(),  | 
                                                        |
| 330 | + 'fact_id' => $fact->getFactId(),  | 
                                                        |
| 331 | + 'ged' => $individual->getTree()->getName(),  | 
                                                        |
| 332 | 332 | ]),  | 
                                                        
| 333 | 333 | ]);  | 
                                                        
| 334 | 334 |          } else { | 
                                                        
@@ -381,8 +381,8 @@ discard block  | 
                                                    ||
| 381 | 381 |              $edit_links = FontAwesome::linkIcon('edit', I18N::translate('Edit the gender'), [ | 
                                                        
| 382 | 382 | 'class' => 'btn btn-link',  | 
                                                        
| 383 | 383 |                  'href'  => route('edit-fact', ['xref'    => $individual->getXref(), | 
                                                        
| 384 | - 'fact_id' => $fact->getFactId(),  | 
                                                        |
| 385 | - 'ged' => $individual->getTree()->getName(),  | 
                                                        |
| 384 | + 'fact_id' => $fact->getFactId(),  | 
                                                        |
| 385 | + 'ged' => $individual->getTree()->getName(),  | 
                                                        |
| 386 | 386 | ]),  | 
                                                        
| 387 | 387 | ]);  | 
                                                        
| 388 | 388 |          } else { | 
                                                        
@@ -65,7 +65,7 @@  | 
                                                    ||
| 65 | 65 | return new Menu(  | 
                                                        
| 66 | 66 | $this->getTitle(),  | 
                                                        
| 67 | 67 |              route('report-setup', ['ged'    => $tree->getName(), | 
                                                        
| 68 | - 'report' => $this->getName(),  | 
                                                        |
| 68 | + 'report' => $this->getName(),  | 
                                                        |
| 69 | 69 | ]),  | 
                                                        
| 70 | 70 | 'menu-report-' . $this->getName(),  | 
                                                        
| 71 | 71 | ['rel' => 'nofollow']  | 
                                                        
@@ -71,7 +71,7 @@  | 
                                                    ||
| 71 | 71 | return new Menu(  | 
                                                        
| 72 | 72 | $this->getTitle(),  | 
                                                        
| 73 | 73 |              route('family-book', ['ged'  => $individual->getTree()->getName(), | 
                                                        
| 74 | - 'xref' => $individual->getXref(),  | 
                                                        |
| 74 | + 'xref' => $individual->getXref(),  | 
                                                        |
| 75 | 75 | ]),  | 
                                                        
| 76 | 76 | 'menu-chart-familybook',  | 
                                                        
| 77 | 77 | ['rel' => 'nofollow']  | 
                                                        
@@ -71,7 +71,7 @@  | 
                                                    ||
| 71 | 71 | return new Menu(  | 
                                                        
| 72 | 72 | $this->getTitle(),  | 
                                                        
| 73 | 73 |              route('descendants', ['ged'  => $individual->getTree()->getName(), | 
                                                        
| 74 | - 'xref' => $individual->getXref(),  | 
                                                        |
| 74 | + 'xref' => $individual->getXref(),  | 
                                                        |
| 75 | 75 | ]),  | 
                                                        
| 76 | 76 | 'menu-chart-descendants',  | 
                                                        
| 77 | 77 | ['rel' => 'nofollow']  | 
                                                        
@@ -224,10 +224,10 @@  | 
                                                    ||
| 224 | 224 | $src = $this->imageUrl($width, $height, $fit);  | 
                                                        
| 225 | 225 | $srcset = [];  | 
                                                        
| 226 | 226 | foreach ([  | 
                                                        
| 227 | - 2,  | 
                                                        |
| 228 | - 3,  | 
                                                        |
| 229 | - 4,  | 
                                                        |
| 230 | -                     ] as $x) { | 
                                                        |
| 227 | + 2,  | 
                                                        |
| 228 | + 3,  | 
                                                        |
| 229 | + 4,  | 
                                                        |
| 230 | +                        ] as $x) { | 
                                                        |
| 231 | 231 | $srcset[] = $this->imageUrl($width * $x, $height * $x, $fit) . ' ' . $x . 'x';  | 
                                                        
| 232 | 232 | }  | 
                                                        
| 233 | 233 | }  | 
                                                        
@@ -65,7 +65,7 @@  | 
                                                    ||
| 65 | 65 | return new Menu(  | 
                                                        
| 66 | 66 | $this->getTitle(),  | 
                                                        
| 67 | 67 |              route('report-setup', ['ged'    => $tree->getName(), | 
                                                        
| 68 | - 'report' => $this->getName(),  | 
                                                        |
| 68 | + 'report' => $this->getName(),  | 
                                                        |
| 69 | 69 | ]),  | 
                                                        
| 70 | 70 | 'menu-report-' . $this->getName(),  | 
                                                        
| 71 | 71 | ['rel' => 'nofollow']  |