Skip to content

Commit

Permalink
Add language specific header to constant list table
Browse files Browse the repository at this point in the history
  • Loading branch information
haszi committed Jan 29, 2024
1 parent 9ea9122 commit 6d607b6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions phpdotnet/phd/Package/Generic/XHTML.php
Original file line number Diff line number Diff line change
Expand Up @@ -1476,7 +1476,7 @@ public function format_step($open, $name, $attrs) {
}
return '</li>';
}
public function format_variablelist($open, $name, $attrs) {
public function format_variablelist($open, $name, $attrs, $props) {
if ($open) {
if (isset($attrs[Reader::XMLNS_DOCBOOK]["role"])) {
$this->role = $attrs[Reader::XMLNS_DOCBOOK]["role"];
Expand All @@ -1488,7 +1488,7 @@ public function format_variablelist($open, $name, $attrs) {
if ($this->role === 'constant_list') {
$tagName = 'table';
$classStr = ' class="doctable table"';
$headerStr = "\n<tr>\n<th>Constants</th>\n<th>Description</th>\n</tr>";
$headerStr = "\n<tr>\n<th>" . $this->autogen('Constants', $props['lang']) . "</th>\n<th>" . $this->autogen('Description', $props['lang']) . "</th>\n</tr>";
} else {
$tagName = 'dl';
}
Expand Down

0 comments on commit 6d607b6

Please sign in to comment.