Skip to content

Commit 2a085e3

Browse files
committed
Add packet direction tag to page title
1 parent 16a723e commit 2a085e3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

templates/Packet/View.phtml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ if ($object) {
2121
. "/" . Common::sanitizeForUrl($object->getPacketName(), true)));
2222

2323
$packet_id = $object->getPacketId(true);
24-
$title = $packet_id . " " . $title;
24+
$title = htmlspecialchars($object->getPacketDirectionTag(), ENT_HTML5, "UTF-8")
25+
. " " . $packet_id . " " . $title;
2526
} else {
2627
$this->opengraph->attach(new Pair("url", "/packet/" . urlencode($object_id)));
2728
}

0 commit comments

Comments
 (0)