fix linking in books list
This commit is contained in:
parent
99e695d350
commit
823f9d2857
|
@ -10,7 +10,7 @@
|
||||||
foreach($files as $file) {
|
foreach($files as $file) {
|
||||||
if(is_file($dir.'/'.$file) && $file != 'index.php' && $file != 'default.php') {
|
if(is_file($dir.'/'.$file) && $file != 'index.php' && $file != 'default.php') {
|
||||||
$fileName = pathinfo($file)['filename'];
|
$fileName = pathinfo($file)['filename'];
|
||||||
echo "<a href='books/$file'>$fileName</a><br>";
|
echo "<a href='/books/$file'>$fileName</a><br>";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
@ -24,4 +24,4 @@
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<?php include "../layout/footer.php"; ?>
|
<?php include "../layout/footer.php"; ?>
|
||||||
|
|
Loading…
Reference in New Issue