diff options
| author | Greg Roach <fisharebest@gmail.com> | 2015-06-05 20:16:40 +0100 |
|---|---|---|
| committer | Greg Roach <fisharebest@gmail.com> | 2015-06-05 21:53:48 +0100 |
| commit | 3d7a8a4ca809135634f38216b734b15acff479f7 (patch) | |
| tree | 4bbe1480119d706851833f3efb4911d62aa52a45 /app/Module/SourcesTabModule.php | |
| parent | fa77f9bd0ddd6a305a367135bc6178fceb44776b (diff) | |
| download | webtrees-3d7a8a4ca809135634f38216b734b15acff479f7.tar.gz webtrees-3d7a8a4ca809135634f38216b734b15acff479f7.tar.bz2 webtrees-3d7a8a4ca809135634f38216b734b15acff479f7.zip | |
Refactor includes/functions into classes
Diffstat (limited to 'app/Module/SourcesTabModule.php')
| -rw-r--r-- | app/Module/SourcesTabModule.php | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/app/Module/SourcesTabModule.php b/app/Module/SourcesTabModule.php index 4840385366..b0a0c3add0 100644 --- a/app/Module/SourcesTabModule.php +++ b/app/Module/SourcesTabModule.php @@ -17,6 +17,8 @@ namespace Fisharebest\Webtrees\Module; */ use Fisharebest\Webtrees\Auth; use Fisharebest\Webtrees\Fact; +use Fisharebest\Webtrees\Functions\Functions; +use Fisharebest\Webtrees\Functions\FunctionsPrintFacts; use Fisharebest\Webtrees\GedcomTag; use Fisharebest\Webtrees\I18N; @@ -69,9 +71,9 @@ class SourcesTabModule extends AbstractModule implements ModuleTabInterface { <?php foreach ($this->getFactsWithSources() as $fact) { if ($fact->getTag() == 'SOUR') { - print_main_sources($fact, 1); + FunctionsPrintFacts::printMainSources($fact, 1); } else { - print_main_sources($fact, 2); + FunctionsPrintFacts::printMainSources($fact, 2); } } if (!$this->getFactsWithSources()) { @@ -126,7 +128,7 @@ class SourcesTabModule extends AbstractModule implements ModuleTabInterface { $this->facts[] = $fact; } } - sort_facts($this->facts); + Functions::sortFacts($this->facts); } return $this->facts; |
