summaryrefslogtreecommitdiff
path: root/includes/controllers/timeline_ctrl.php
diff options
context:
space:
mode:
authorfisharebest <fisharebest@gmail.com>2010-10-30 11:06:15 +0000
committerfisharebest <fisharebest@gmail.com>2010-10-30 11:06:15 +0000
commit3170e659dc1f3be4e87c8cbf4d4c74b321b6f5eb (patch)
tree0d0c86a7df2af32f923f875c981937116898a042 /includes/controllers/timeline_ctrl.php
parentbb9380f78cc1136cca02e80e13a1e4f976f846fa (diff)
downloadwebtrees-3170e659dc1f3be4e87c8cbf4d4c74b321b6f5eb.tar.gz
webtrees-3170e659dc1f3be4e87c8cbf4d4c74b321b6f5eb.tar.bz2
webtrees-3170e659dc1f3be4e87c8cbf4d4c74b321b6f5eb.zip
#663955. Be explicit about which sorts of URL to generate: '&amp;' for ones in html, and '&' for ones in HTTP headers and between WT_JS_START/WT_JS_END markers. Get rid of "encode_url()" function, which attempted to "magically" fix problems with the wrong URL style.
Diffstat (limited to 'includes/controllers/timeline_ctrl.php')
-rw-r--r--includes/controllers/timeline_ctrl.php22
1 files changed, 11 insertions, 11 deletions
diff --git a/includes/controllers/timeline_ctrl.php b/includes/controllers/timeline_ctrl.php
index e423115514..bc8e43d9af 100644
--- a/includes/controllers/timeline_ctrl.php
+++ b/includes/controllers/timeline_ctrl.php
@@ -152,7 +152,7 @@ class TimelineController extends BaseController {
if (!is_null($this->people[$i])) {
if (!$this->people[$i]->canDisplayDetails()) {
if ($this->people[$i]->canDisplayName()) {
- print "&nbsp;<a href=\"".encode_url($this->people[$i]->getLinkUrl())."\">".PrintReady($this->people[$i]->getFullName())."</a>";
+ print "&nbsp;<a href=\"".$this->people[$i]->getHtmlUrl()."\">".PrintReady($this->people[$i]->getFullName())."</a>";
print_privacy_error();
print "<br />";
$printed = true;
@@ -213,14 +213,14 @@ class TimelineController extends BaseController {
$xoffset += abs($tyoffset);
$placements[$place] = $yoffset;
- print "\n\t\t<div id=\"fact$factcount\" style=\"position:absolute; ".($TEXT_DIRECTION =="ltr"?"left: ".($xoffset):"right: ".($xoffset))."px; top:".($yoffset)."px; font-size: 8pt; height: ".($this->bheight)."px; \" onmousedown=\"factMD(this, '".$factcount."', ".($yoffset-$tyoffset).");\">\n";
- print "<table cellspacing=\"0\" cellpadding=\"0\" border=\"0\" style=\"cursor: hand;\"><tr><td>\n";
+ print "<div id=\"fact$factcount\" style=\"position:absolute; ".($TEXT_DIRECTION =="ltr"?"left: ".($xoffset):"right: ".($xoffset))."px; top:".($yoffset)."px; font-size: 8pt; height: ".($this->bheight)."px; \" onmousedown=\"factMD(this, '".$factcount."', ".($yoffset-$tyoffset).");\">";
+ print "<table cellspacing=\"0\" cellpadding=\"0\" border=\"0\" style=\"cursor: hand;\"><tr><td>";
print "<img src=\"".$WT_IMAGES["hline"]."\" name=\"boxline$factcount\" id=\"boxline$factcount\" height=\"3\" align=\"left\" hspace=\"0\" width=\"10\" vspace=\"0\" alt=\"\" style=\"padding-";
if ($TEXT_DIRECTION=="ltr") print "left";
else print "right";
- print ": 3px;\" />\n";
+ print ": 3px;\" />";
$col = $event->temp % 6;
- print "</td><td valign=\"top\" class=\"person".$col."\">\n";
+ print "</td><td valign=\"top\" class=\"person".$col."\">";
if (count($this->pids) > 6) print $event->getParentObject()->getFullName()." - ";
$indi=$event->getParentObject();
print $event->getLabel();
@@ -286,19 +286,19 @@ class TimelineController extends BaseController {
if ($p==count($this->pids)) $p = $event->temp;
$col = $p % 6;
if ($spouse->getXref()!=$this->pids[$p]) {
- echo ' <a href="', $spouse->getLinkUrl(), '">', $spouse->getFullName(), '</a>';
+ echo ' <a href="', $spouse->getHtmlUrl(), '">', $spouse->getFullName(), '</a>';
}
else {
$ct = preg_match("/2 _WTFS @(.*)@/", $factrec, $match);
if ($ct>0) {
- print " <a href=\"".encode_url("family.php?famid={$match[1]}&ged={$GEDCOM}")."\">";
+ print " <a href=\"family.php?famid={$match[1]}&amp;ged={$GEDCOM}\">";
if ($event->getParentObject()->canDisplayName()) print $event->getParentObject()->getFullName();
else print i18n::translate('Private');
print "</a>";
}
}
}
- print "</td></tr></table>\n";
+ print "</td></tr></table>";
print "</div>";
if ($TEXT_DIRECTION=='ltr') {
$img = "dline2";
@@ -321,9 +321,9 @@ class TimelineController extends BaseController {
}
}
//-- print the diagnal line
- print "\n\t\t<div id=\"dbox$factcount\" style=\"position:absolute; ".($TEXT_DIRECTION =="ltr"?"left: ".($basexoffset+25):"right: ".($basexoffset+25))."px; top:".($dyoffset)."px; font-size: 8pt; height: ".(abs($tyoffset))."px; width: ".(abs($tyoffset))."px;";
+ print "<div id=\"dbox$factcount\" style=\"position:absolute; ".($TEXT_DIRECTION =="ltr"?"left: ".($basexoffset+25):"right: ".($basexoffset+25))."px; top:".($dyoffset)."px; font-size: 8pt; height: ".(abs($tyoffset))."px; width: ".(abs($tyoffset))."px;";
print " background-image: url('".$WT_IMAGES[$img]."');";
- print " background-position: 0% $ypos; \" >\n";
- print "</div>\n";
+ print " background-position: 0% $ypos; \" >";
+ print "</div>";
}
}