Completed
Push — develop ( 78b87e...173250 )
by Greg
08:50
created
app/Functions/FunctionsPrintFacts.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -176,7 +176,8 @@  discard block
 block discarded – undo
176 176
 			<div class="editfacts">
177 177
 				<?php if ($fact->getTag() === 'FILE' && $fact->getParent() instanceof Media): ?>
178 178
 					<?= FontAwesome::linkIcon('edit', I18N::translate('Edit'), ['class' => 'btn btn-link', 'href' => 'edit_interface.php?action=media-edit&xref=' . $parent->getXref() . '&fact_id=' . $fact->getFactId() . '&ged=' . $parent->getTree()->getNameHtml()]) ?>
179
-				<?php else: ?>
179
+				<?php else {
180
+	: ?>
180 181
 					<?= FontAwesome::linkIcon('edit', I18N::translate('Edit'), ['class' => 'btn btn-link', 'href' => 'edit_interface.php?action=edit&xref=' . $parent->getXref() . '&fact_id=' . $fact->getFactId() . '&ged=' . $parent->getTree()->getNameHtml()]) ?>
181 182
 					<?= FontAwesome::linkIcon('copy', I18N::translate('Copy'), ['class' => 'btn btn-link', 'href' => '#', 'onclick' => 'return copy_fact("' . $parent->getXref() . '", "' . $fact->getFactId() . '");']) ?>
182 183
 					<?= FontAwesome::linkIcon('delete', I18N::translate('Delete'), ['class' => 'btn btn-link', 'href' => '#', 'onclick' => 'return delete_fact("' . I18N::translate('Are you sure you want to delete this fact?') . '", "' . $parent->getXref() . '", "' . $fact->getFactId() . '");']) ?>
@@ -185,6 +186,7 @@  discard block
 block discarded – undo
185 186
 		<?php
186 187
 		} else {
187 188
 			echo $label;
189
+}
188 190
 		}
189 191
 
190 192
 		switch ($fact->getTag()) {
Please login to merge, or discard this patch.