summaryrefslogtreecommitdiff
path: root/viewthread.php
diff options
context:
space:
mode:
Diffstat (limited to 'viewthread.php')
-rw-r--r--viewthread.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/viewthread.php b/viewthread.php
index c8ae99e..64750a5 100644
--- a/viewthread.php
+++ b/viewthread.php
@@ -22,21 +22,21 @@ if (!isset($_GET['id']) || !filter_var($_GET['id'], FILTER_VALIDATE_INT)) {
<!DOCTYPE html>
<html>
<head>
- <title><?php echo $current->subject; ?> - cflip.net forum</title>
+ <title><?= $current->subject; ?> - cflip.net forum</title>
<link rel="stylesheet" href="styles/style.css">
</head>
<body>
<?php include_once 'templates/header.php';?>
- <h1><?php echo $current->subject; ?></h1>
- created by <b><?php echo $current->author->name; ?></b>
- in <b><?php echo $current->category->name; ?></b>
- <abbr title="<?php echo date('M d, Y g:ia', strtotime($current->date_created));?>">3 days ago</abbr>
+ <h1><?= $current->subject; ?></h1>
+ created by <b><?= $current->author->name; ?></b>
+ in <b><?= $current->category->name; ?></b>
+ <abbr title="<?= date('M d, Y g:ia', strtotime($current->date_created));?>">3 days ago</abbr>
<hr>
<?php
$posts = $current->get_posts($dbc);
foreach ($posts as $post) {
- $post->display_content();
+ $post->display_content($dbc);
}
?>
<hr>