mirror of
https://github.com/YunoHost-Apps/opensondage_ynh.git
synced 2024-09-03 19:46:28 +02:00
Fix white page on legal info.
Fix default language not set
This commit is contained in:
parent
9a5062f14c
commit
3bfd16e50b
5 changed files with 6 additions and 12 deletions
BIN
img/home.png
Normal file
BIN
img/home.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 122 KiB |
|
@ -46,7 +46,7 @@
|
|||
"fr": "Indiquez la page où figure les mentions légales"
|
||||
},
|
||||
"example": "http://example.com",
|
||||
"default": ""
|
||||
"default": "./apropos.php"
|
||||
},
|
||||
{
|
||||
"name": "language",
|
||||
|
|
|
@ -47,7 +47,7 @@ sudo sed -i "s/yunoadmin/$admin/g" $final_path/variables.php
|
|||
sudo sed -i "s/I18NTOCHANGE/$language/g" $final_path/variables.php
|
||||
sudo sed -i "s@yunourl@$domain$path@g" $final_path/variables.php
|
||||
sudo sed -i "s@yunodomain@$domain@g" $final_path/variables.php
|
||||
sudo sed -i "s°yunoinfolegal°$legal°g" $final_path/variables.php
|
||||
sudo sed -i "s@yunoinfolegal@$legal@g" $final_path/variables.php
|
||||
|
||||
# Create log file
|
||||
touch $final_path/admin/logs_studs.txt
|
||||
|
|
|
@ -156,12 +156,7 @@ alternatives libres existent et qu'on peut les installer "chez soi".<br>
|
|||
<h1><a name="faq"></a>Mentions légales</h1>
|
||||
<h2>Éditeur et Responsable de la publication</h2>
|
||||
mentions;
|
||||
if (!empty(URL_INFO_LEGAL))
|
||||
{
|
||||
echo '<p>Voir la page des <a href="'.URL_INFO_LEGAL.'">Informations légales</a></p>';
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
echo <<<mentions2
|
||||
<p>Vous pouvez rentrer en contact avec l'Editeur et le
|
||||
Responsable de la publication en passant par la page "<a href="contacts.php">contact</a>".</p>
|
||||
|
@ -223,7 +218,6 @@ individu, vous autorisez cette personne à utiliser, partager, modifier
|
|||
votre sondage.</p>
|
||||
<hr style="width: 100%; height: 2px;">
|
||||
mentions2;
|
||||
}
|
||||
|
||||
|
||||
echo <<<mentions3
|
||||
|
|
|
@ -171,7 +171,7 @@ function bandeau_pied()
|
|||
'<a class="button small gray" href="' . getUrlSondage('aqg259dth55iuhwm').'">'. _("Example") .'</a>' .
|
||||
'<a class="button small gray" href="./contacts.php" target="_new">'. _("Contact") .'</a>' .
|
||||
//'<a href="sources/sources.php">'. _("Sources") .'</a>' . //not implemented
|
||||
'<a class="button small gray" href="apropos.php">'. _("About") .'</a>' .
|
||||
'<a class="button small gray" href="'.URL_INFO_LEGAL.'">'. _("About") .'</a>' .
|
||||
//'<a class="button small gray" href="admin/index.php">'. _("Admin") .'</a>' .
|
||||
'<span class="sousbandeau sousbandeaulangue">' .
|
||||
liste_lang() . '</span>'.
|
||||
|
@ -190,7 +190,7 @@ function bandeau_pied_mobile()
|
|||
'<a class="button small gray" href="' . getUrlSondage('aqg259dth55iuhwm').'">'. _("Example") .'</a>' .
|
||||
'<a class="button small gray" href="./contacts.php" target="_new">'. _("Contact") .'</a>' .
|
||||
//'<a href="sources/sources.php">'. _("Sources") .'</a>' . //not implemented
|
||||
'<a class="button small gray" href="apropos.php">'. _("About") .'</a>' .
|
||||
'<a class="button small gray" href="'.URL_INFO_LEGAL.'">'. _("About") .'</a>' .
|
||||
//'<a class="button small gray" href="admin/index.php">'. _("Admin") .'</a>' .
|
||||
'<span class="sousbandeau sousbandeaulangue">' .
|
||||
liste_lang() . '</span>'.
|
||||
|
|
Loading…
Add table
Reference in a new issue