summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorfisharebest <fisharebest@gmail.com>2010-06-19 10:12:12 +0000
committerfisharebest <fisharebest@gmail.com>2010-06-19 10:12:12 +0000
commit2a0806e85ec8a60e1b6b381779b8aa865fe2b812 (patch)
tree316ccee7d743c741552c424c5a4e7eae35e9d578 /modules
parent7f75fa314ef5b501d1619b449e1a5f082fac2c0c (diff)
downloadwebtrees-2a0806e85ec8a60e1b6b381779b8aa865fe2b812.tar.gz
webtrees-2a0806e85ec8a60e1b6b381779b8aa865fe2b812.tar.bz2
webtrees-2a0806e85ec8a60e1b6b381779b8aa865fe2b812.zip
Use API to access object data
Diffstat (limited to 'modules')
-rw-r--r--modules/notes/module.php2
-rw-r--r--modules/sources_tab/module.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/modules/notes/module.php b/modules/notes/module.php
index dab64acf1f..133b19c679 100644
--- a/modules/notes/module.php
+++ b/modules/notes/module.php
@@ -131,7 +131,7 @@ if (!$SHOW_LEVEL2_NOTES) {
function get_note_count() {
if ($this->noteCount===null) {
- $ct = preg_match_all("/\d NOTE /", $this->controller->indi->gedrec, $match, PREG_SET_ORDER);
+ $ct = preg_match_all("/\d NOTE /", $this->controller->indi->getGedcomRecord(), $match, PREG_SET_ORDER);
foreach ($this->controller->indi->getSpouseFamilies() as $k => $sfam)
$ct += preg_match("/\d NOTE /", $sfam->getGedcomRecord());
$this->noteCount = $ct;
diff --git a/modules/sources_tab/module.php b/modules/sources_tab/module.php
index 15bacfe1e6..50470fbcf5 100644
--- a/modules/sources_tab/module.php
+++ b/modules/sources_tab/module.php
@@ -120,7 +120,7 @@ class sources_tab_WT_Module extends WT_Module implements WT_Module_Tab {
function get_source_count() {
if ($this->sourceCount===null) {
- $ct = preg_match_all("/\d SOUR @(.*)@/", $this->controller->indi->gedrec, $match, PREG_SET_ORDER);
+ $ct = preg_match_all("/\d SOUR @(.*)@/", $this->controller->indi->getGedcomRecord(), $match, PREG_SET_ORDER);
foreach ($this->controller->indi->getSpouseFamilies() as $k => $sfam)
$ct += preg_match("/\d SOUR /", $sfam->getGedcomRecord());
$this->sourceCount = $ct;