diff options
| author | fisharebest <fisharebest@gmail.com> | 2010-06-06 20:36:06 +0000 |
|---|---|---|
| committer | fisharebest <fisharebest@gmail.com> | 2010-06-06 20:36:06 +0000 |
| commit | 4089e7044f57e3849bfc124ff36b34db58406415 (patch) | |
| tree | 992de43bfc67451899dbd8d47715b15e8e1443ff /modules/review_changes/module.php | |
| parent | 45c53bd6de93a278043e44d2ebe5eb93efc6634b (diff) | |
| download | webtrees-4089e7044f57e3849bfc124ff36b34db58406415.tar.gz webtrees-4089e7044f57e3849bfc124ff36b34db58406415.tar.bz2 webtrees-4089e7044f57e3849bfc124ff36b34db58406415.zip | |
Move gedcom and privacy settings from .PHP files to database tables
Diffstat (limited to 'modules/review_changes/module.php')
| -rw-r--r-- | modules/review_changes/module.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/review_changes/module.php b/modules/review_changes/module.php index fe2c94c5ae..7b5df24598 100644 --- a/modules/review_changes/module.php +++ b/modules/review_changes/module.php @@ -45,7 +45,7 @@ class review_changes_WT_Module extends WT_Module implements WT_Module_Block { // Implement class WT_Module_Block public function getBlock($block_id, $template=true) { - global $ctype, $QUERY_STRING, $WT_IMAGE_DIR, $WT_IMAGES, $TEXT_DIRECTION, $SHOW_SOURCES, $WEBTREES_EMAIL, $THEME_DIR; + global $ctype, $QUERY_STRING, $WT_IMAGE_DIR, $WT_IMAGES, $TEXT_DIRECTION, $WEBTREES_EMAIL, $THEME_DIR; $changes=WT_DB::prepare( "SELECT 1". @@ -119,7 +119,7 @@ class review_changes_WT_Module extends WT_Module implements WT_Module_Block { )->execute(array(WT_GED_ID))->fetchAll(); foreach ($changes as $change) { $record=GedcomRecord::getInstance($change->xref); - if ($record->getType()!='SOUR' || $SHOW_SOURCES>=WT_USER_ACCESS_LEVEL) { + if ($record->canDisplayDetails()) { $content.='<b>'.PrintReady($record->getFullName()).'</b> '.getLRM().'('.$record->getXref().')'.getLRM(); switch ($record->getType()) { case 'INDI': |
