|
@@ -70,7 +70,7 @@ discard block |
|
|
block discarded – undo |
|
70
|
70
|
if (($fact->getDate() || $fact->getPlace()) && $fact->canShow()) { |
|
71
|
71
|
switch ($style) { |
|
72
|
72
|
case 10: |
|
73
|
|
- return '<i>'.$fact->getLabel().' '. \MyArtJaub\Webtrees\Functions\FunctionsPrint::formatFactDateShort($fact) .' '. MyArtJaub\Webtrees\Functions\FunctionsPrint::formatFactPlaceShort($fact, '%1') .'</i>'; |
|
|
73
|
+ return '<i>'.$fact->getLabel().' '. \MyArtJaub\Webtrees\Functions\FunctionsPrint::formatFactDateShort($fact) .' '. MyArtJaub\Webtrees\Functions\FunctionsPrint::formatFactPlaceShort($fact, '%1') .'</i>'; |
|
74
|
74
|
default: |
|
75
|
75
|
return $this->gedcomrecord->formatFirstMajorFact($facts, $style); |
|
76
|
76
|
} |
|
@@ -88,7 +88,7 @@ discard block |
|
|
block discarded – undo |
|
88
|
88
|
public function canDisplayIsSourced($access_level = null){ |
|
89
|
89
|
if(!$this->gedcomrecord->canShow($access_level)) return false; |
|
90
|
90
|
if($access_level === null ) |
|
91
|
|
- $access_level = \Fisharebest\Webtrees\Auth::accessLevel($this->gedcomrecord->getTree()); |
|
|
91
|
+ $access_level = \Fisharebest\Webtrees\Auth::accessLevel($this->gedcomrecord->getTree()); |
|
92
|
92
|
|
|
93
|
93
|
$global_facts = Globals::getGlobalFacts(); |
|
94
|
94
|
if (isset($global_facts['SOUR'])) { |
|
@@ -127,7 +127,7 @@ discard block |
|
|
block discarded – undo |
|
127
|
127
|
* @return int Level of sources |
|
128
|
128
|
*/ |
|
129
|
129
|
public function isFactSourced($eventslist){ |
|
130
|
|
- if(empty($eventslist)) return 0; |
|
|
130
|
+ if(empty($eventslist)) return 0; |
|
131
|
131
|
$isSourced=0; |
|
132
|
132
|
$facts = $this->gedcomrecord->getFacts($eventslist); |
|
133
|
133
|
foreach($facts as $fact){ |
Please login to merge, or discard this patch.