Skip to content

Commit 573f2b7

Browse files
authored
Merge pull request #585 from Oreolek/pdf
Do not link table headers in a PDF
2 parents ff65048 + 3ebc678 commit 573f2b7

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

meta/AggregationTable.php

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -230,8 +230,14 @@ protected function renderColumnHeaders()
230230

231231
// output XHTML header
232232
$this->renderer->doc .= "<th $width $data>";
233-
$this->renderer->doc .= '<a href="' . $link . '" class="' . $sortclass . '" ' .
234-
'title="' . $this->helper->getLang('sort') . '">' . hsc($header) . '</a>';
233+
234+
if (is_a($this->renderer, 'renderer_plugin_dw2pdf')) {
235+
$this->renderer->doc .= hsc($header);
236+
} else {
237+
$this->renderer->doc .= '<a href="' . $link . '" class="' . $sortclass . '" ' .
238+
'title="' . $this->helper->getLang('sort') . '">' . hsc($header) . '</a>';
239+
}
240+
235241
$this->renderer->doc .= '</th>';
236242
}
237243

0 commit comments

Comments
 (0)