Pick better patterns to identify policy sections

This commit is contained in:
thopic 2021-11-17 23:29:10 +01:00
parent f4b0d207bb
commit 28fb3e7d36
Signed by: thopic
GPG Key ID: 292DBBF0B54AD4C5

View File

@ -33,7 +33,7 @@
<h2 id="CGU">Conditions Générales d'Utilisation</h2>
<?php
$cgu_rev_long = exec('git log -1 --pretty=format:"%H" -L "/<!-- CGU start -->/,/<!-- CGU end -->/":politiques.php -s');
$cgu_rev_long = exec('git log -1 --pretty=format:"%H" -L "/<!-- CGU start -->$/,/<!-- CGU end -->$/":politiques.php -s');
$cgu_rev_short = substr($cgu_rev_long, 0, 7);
?>
<i>Version <a href="https://git.gnous.fr/gnous/main_website/commit/<?php echo $cgu_rev_long;?>" target="_blank"><?php echo $cgu_rev_short;?></a></i>
@ -51,7 +51,7 @@
<h2 id="privacy">Politique de confidentialité</h2>
<?php
$privacy_rev_long = exec('git log -1 --pretty=format:"%H" -L "/<!-- privacy start -->/,/<!-- privacy end -->/":politiques.php -s');
$privacy_rev_long = exec('git log -1 --pretty=format:"%H" -L "/<!-- privacy start -->$/,/<!-- privacy end -->$/":politiques.php -s');
$privacy_rev_short = substr($privacy_rev_long, 0, 7);
?>
<i>Version <a href="https://git.gnous.fr/gnous/main_website/commit/<?php echo $privacy_rev_long;?>" target="_blank"><?php echo $privacy_rev_short;?></a></i>