Update file editpage.php

This commit is contained in:
Jan BELLON 2024-03-07 16:39:55 +00:00
parent a8f72da22e
commit ca7b7f5b2b

View File

@ -84,7 +84,7 @@ if(isset($fichier)) {
<div>
<?php
if(isset($contenu)) {
echo '<div><textarea name="page-content">' . $contenu . '</textarea></div>';
echo '<div><textarea name="page-content">' . $texte = str_replace("<br />", "", $contenu) . '</textarea></div>';
echo '<div><input type="submit" value="Publier"></div>';
} else {
echo "<div>";
@ -92,7 +92,7 @@ if(isset($fichier)) {
foreach($pages as $page) {
if($page != "." && $page != "..") {
if (is_file($repertoire . "content/" . $page)) {
echo "<a href='?page='" . pathinfo($page, PATHINFO_FILENAME) . "'><div>" . pathinfo($page, PATHINFO_FILENAME) . "</div></a>";
echo "<a href='?page=" . pathinfo($page, PATHINFO_FILENAME) . "'><div>" . pathinfo($page, PATHINFO_FILENAME) . "</div></a>";
}
}
}