summaryrefslogtreecommitdiff
path: root/gedcheck.php
diff options
context:
space:
mode:
Diffstat (limited to 'gedcheck.php')
-rw-r--r--gedcheck.php9
1 files changed, 1 insertions, 8 deletions
diff --git a/gedcheck.php b/gedcheck.php
index 5da52c2709..a0782598e0 100644
--- a/gedcheck.php
+++ b/gedcheck.php
@@ -77,7 +77,6 @@ else {
$ged =safe_POST('ged', preg_quote_array(array_keys($all_geds)), $default_ged);
$err_level =safe_POST('err_level', '[0-3]', $critical); // Higher numbers are more picky.
-$openinnew =safe_POST('openinnew', '[01]', '0'); // Open links in same/new tab/window
$context_lines=safe_POST('context_lines','[0-5]', '2'); // Lines of context to display
$showall =safe_POST('showall', '[01]', '0'); // Show details of records with no problems
@@ -95,11 +94,6 @@ for ($i=0; $i<count($levels); $i++) {
echo '<option value="', $i, '"', $i==$err_level?' selected="selected"':'', '>', $levels[$i], '</option>';
}
echo '</select></td></tr>';
-echo '<tr><td class="list_label">', WT_I18N::translate('Open links in'), '</td>';
-echo '<td class="optionbox"><select name="openinnew">';
-echo '<option value="0"', $openinnew==0?' selected="selected"':'', '>', WT_I18N::translate('Same tab/window'), '</option>';
-echo '<option value="1"', $openinnew==1?' selected="selected"':'', '>', WT_I18N::translate('New tab/window'), '</option>';
-echo '</select></td></tr>';
echo '<tr><td class="list_label">', WT_I18N::translate('Lines of GEDCOM context'), '</td>';
echo '<td class="optionbox"><select name="context_lines">';
for ($i=0; $i<6; $i++) {
@@ -165,13 +159,12 @@ $WT_LINK=array(
'OBJE'=>'mediaviewer.php?mid=',
'NOTE'=>'note.php?nid='
);
-$target=($openinnew==1 ? ' target="_new"' : '');
function wt_href($tag, $xref, $name='')
{
global $WT_LINK, $target, $ged;
$text=($name=='' ? "$tag $xref" : "$name ($xref)");
if (isset($WT_LINK[$tag]) && get_id_from_gedcom($ged)) {
- return '&lrm;<a href="'.$WT_LINK[$tag].str_replace('@','',$xref).'&amp;ged='.rawurlencode($ged).'"'.$target.'>'.$text.'</a>&lrm;';
+ return '&lrm;<a href="'.$WT_LINK[$tag].str_replace('@','',$xref).'&amp;ged='.rawurlencode($ged).'">'.$text.'</a>&lrm;';
} else {
return "&lrm;$tag $xref&lrm;";
}