summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcflip <36554078+cflip@users.noreply.github.com>2021-04-07 16:25:26 -0600
committercflip <36554078+cflip@users.noreply.github.com>2021-04-07 16:25:26 -0600
commitaa0be9c9de3e30f6db45b00aa601853cac51300f (patch)
treeaf3ff6ff23d9d605d671a8670bea70d2f2d538dc
parent3b0349188c83b24cb8ff7dfe76796dabc3916e83 (diff)
Use short echo tags
-rw-r--r--viewcategory.php8
-rw-r--r--viewuser.php6
2 files changed, 7 insertions, 7 deletions
diff --git a/viewcategory.php b/viewcategory.php
index 85dc7ea..0d69ed8 100644
--- a/viewcategory.php
+++ b/viewcategory.php
@@ -22,15 +22,15 @@ if (!isset($_GET['id']) || !filter_var($_GET['id'], FILTER_VALIDATE_INT)) {
<!DOCTYPE html>
<html>
<head>
- <title><?php echo $current->name; ?> - cflip.net forum</title>
+ <title><?= $current->name; ?> - cflip.net forum</title>
<link rel="stylesheet" href="styles/style.css">
</head>
<body>
<?php include_once 'templates/header.php';?>
- <h1><?php echo $current->name; ?></h1>
- <p><?php echo $current->description; ?></p>
+ <h1><?= $current->name; ?></h1>
+ <p><?= $current->description; ?></p>
<span class="info">
- <?php echo $current->thread_count . ' threads, ' . $current->post_count . ' posts'; ?>
+ <?= $current->thread_count . ' threads, ' . $current->post_count . ' posts'; ?>
</span>
<h2>Threads</h2>
<table width="100%">
diff --git a/viewuser.php b/viewuser.php
index c43a700..3a33de0 100644
--- a/viewuser.php
+++ b/viewuser.php
@@ -14,12 +14,12 @@ if (!isset($_GET['id'])) {
<!DOCTYPE html>
<html>
<head>
- <title><?php echo $current->name; ?>'s Profile - cflip.net forum</title>
+ <title><?= $current->name; ?>'s Profile - cflip.net forum</title>
<link rel="stylesheet" href="styles/style.css">
</head>
<body>
<?php include_once "templates/header.php" ?>
- <h1><?php echo $current->name; ?></h1>
- member since <?php echo date('M d, Y', strtotime($current->date)); ?>
+ <h1><?= $current->name; ?></h1>
+ member since <?= date('M d, Y', strtotime($current->date)); ?>
</body>
</html>