Merge 10.1.02

This commit is contained in:
Fred Tempez 2020-05-28 07:19:06 +02:00
parent 1515579141
commit 1cc2f5e225
4 changed files with 35 additions and 26 deletions

View File

@ -10,6 +10,11 @@
- Thème de l'administration, amélioration du rendu. - Thème de l'administration, amélioration du rendu.
- Image tag : adaptatations suit à la modification de l'API Google. - Image tag : adaptatations suit à la modification de l'API Google.
## version 10.1.002
- Corrections :
- free.fr : désactivation totale de la fonction de récupération de données en ligne (update, image tag, etc..)
- Image Tag absente : non régénérée au lancement de la configuration du site, image masquée dans si absente.
## version 10.1.001 ## version 10.1.001
- Correction : - Correction :
- Extension image tag. - Extension image tag.

View File

@ -24,6 +24,10 @@ class helper {
*/ */
public static function urlGetContents ($url) { public static function urlGetContents ($url) {
// Ejecter free.fr
if (strpos(self::baseUrl(),'free.fr') > 0 ){
return false;
}
if(function_exists('file_get_contents') && if(function_exists('file_get_contents') &&
ini_get('allow_url_fopen') ){ ini_get('allow_url_fopen') ){
$url_get_contents_data = @file_get_contents($url); // Masque un warning éventuel $url_get_contents_data = @file_get_contents($url); // Masque un warning éventuel

View File

@ -270,7 +270,7 @@ class config extends common {
} }
// Valeurs en sortie // Valeurs en sortie
$this->addOutput([ $this->addOutput([
'notification' => $success === true ? 'Image tag réinitialisée' : 'Erreur : image tag non créée', 'notification' => $success === true ? 'Image Open Graph réinitialisée' : 'Erreur : image Open Graph non créée',
'redirect' => helper::baseUrl() . 'config', 'redirect' => helper::baseUrl() . 'config',
'state' => $success 'state' => $success
]); ]);

View File

@ -241,7 +241,7 @@
<div class="col6"> <div class="col6">
<?php echo template::button('configSiteMap', [ <?php echo template::button('configSiteMap', [
'href' => helper::baseUrl() . 'config/generateFiles', 'href' => helper::baseUrl() . 'config/generateFiles',
'value' => 'sitemap.xml / robots.txt', 'value' => 'Sitemap.xml / Robots.txt',
'ico' => 'pencil' 'ico' => 'pencil'
]); ?> ]); ?>
</div> </div>