Skip to content

Commit

Permalink
Correction du site sur la gestion du flag beta
Browse files Browse the repository at this point in the history
La version précédente affichait bien "BETA" mais changeait aussi les
URL.
  • Loading branch information
gleu committed Jun 25, 2022
1 parent a29d723 commit ddb515b
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions www-docs.postgresql.fr/lib/liste_documentations.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
if ($pgconn)
{
$query = "SELECT version||CASE WHEN beta THEN ' BETA!' ELSE '' END AS version FROM versions WHERE obsolete=";
$query = "SELECT version, beta FROM versions WHERE obsolete=";
$query .= $obsoletes ? "true" : "false";
$query .= " ORDER BY ordre";
$result = pg_query($pgconn, $query);
Expand All @@ -10,6 +10,10 @@
while ($ligne = pg_fetch_array($result))
{
array_push($versions, $ligne['version']);
if($ligne['beta'] == 't')
{
$beta = $ligne['version'];
}
}
}
elseif ($obsoletes)
Expand All @@ -25,7 +29,7 @@
{
echo "
<div id=\"pg${version}\">
<h2>Version ${version}</h2>
<h2>Version ${version}".($beta == $version ? " BETA!" : "")."</h2>
<div class=\"listes\">
<ul>
<li>Manuel au format HTML&nbsp;:
Expand Down

0 comments on commit ddb515b

Please sign in to comment.