fixed links

master
Jakob 2020-03-07 19:29:33 +01:00
parent e0e4592289
commit 1545576d1e
1 changed files with 2 additions and 2 deletions

View File

@ -29,7 +29,7 @@ $navbar="boards";
$statement = $pdo->prepare("SELECT * FROM boards WHERE private='0' ORDER BY id asc"); $statement = $pdo->prepare("SELECT * FROM boards WHERE private='0' ORDER BY id asc");
$statement->execute(); $statement->execute();
foreach($statement->fetchAll() as $ROW) { foreach($statement->fetchAll() as $ROW) {
echo "<li><a href='%CONTENT_DIR%/boards/thread.php?id=$ROW[id]'>$ROW[name]</a></li>"; echo "<li><a href='%CONTENT_DIR%/board/?id=$ROW[id]'>$ROW[name]</a></li>";
} }
} }
if (!$result) { if (!$result) {
@ -49,7 +49,7 @@ $navbar="boards";
$statement = $pdo->prepare("SELECT * FROM boards WHERE private='1' ORDER BY id asc"); $statement = $pdo->prepare("SELECT * FROM boards WHERE private='1' ORDER BY id asc");
$statement->execute(); $statement->execute();
foreach($statement->fetchAll() as $ROW) { foreach($statement->fetchAll() as $ROW) {
echo "<li><a href='%CONTENT_DIR%/boards/thread.php?id=$ROW[id]'>$ROW[name]</a></li>"; echo "<li><a href='%CONTENT_DIR%/board/?id=$ROW[id]'>$ROW[name]</a></li>";
} }
} }
if (!$result) { if (!$result) {