diff options
| author | Greg Roach <fisharebest@gmail.com> | 2015-02-05 09:26:51 +0000 |
|---|---|---|
| committer | Greg Roach <fisharebest@gmail.com> | 2015-02-05 09:26:51 +0000 |
| commit | 000959d9134504933ce07383f62992e9dfa59f34 (patch) | |
| tree | 16de0aa467d27bcd6abeab8149be6840fa5b1ead /app/Module.php | |
| parent | dd04c183d8beed05be2226b30b7dda485ea4538a (diff) | |
| download | webtrees-000959d9134504933ce07383f62992e9dfa59f34.tar.gz webtrees-000959d9134504933ce07383f62992e9dfa59f34.tar.bz2 webtrees-000959d9134504933ce07383f62992e9dfa59f34.zip | |
Add API to access the parent tree of a record
Diffstat (limited to 'app/Module.php')
| -rw-r--r-- | app/Module.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/Module.php b/app/Module.php index 756da3fa02..93f79358f0 100644 --- a/app/Module.php +++ b/app/Module.php @@ -169,7 +169,7 @@ abstract class Module { $access_level = Database::prepare( "SELECT access_level FROM `##module_privacy` WHERE gedcom_id = :gedcom_id AND module_name = :module_name AND component = :component" )->execute(array( - 'gedcom_id' => $tree->id(), + 'gedcom_id' => $tree->getId(), 'module_name' => $this->getName(), 'component' => $component, ))->fetchOne(); |
