diff --git a/CHANGES.md b/CHANGES.md index dd4a0176..eeaf1de4 100755 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,5 +1,9 @@ # Changelog +## Version 11.5.11 +### Correction : +- Génération du flux RSS dans le module blog, URL des miniatures incorrects. + ## Version 11.5.10 ### Correction : - Dysfonctionnement de la classe strftime, setlocale mal défini. diff --git a/README.md b/README.md index 6561f9a4..e79def9f 100755 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# ZwiiCMS 11.5.10 +# ZwiiCMS 11.5.11 Zwii est un CMS sans base de données (flat-file) qui permet de créer et gérer facilement un site web sans aucune connaissance en programmation. diff --git a/core/core.php b/core/core.php index 1005de6a..d2bf83cd 100644 --- a/core/core.php +++ b/core/core.php @@ -46,7 +46,7 @@ class common // Numéro de version const ZWII_UPDATE_URL = 'https://forge.chapril.org/ZwiiCMS-Team/update/raw/branch/master/'; - const ZWII_VERSION = '11.5.10'; + const ZWII_VERSION = '11.5.11'; const ZWII_UPDATE_CHANNEL = "v11"; public static $actions = []; diff --git a/module/blog/blog.php b/module/blog/blog.php index 23690d0f..05bf40ed 100644 --- a/module/blog/blog.php +++ b/module/blog/blog.php @@ -144,8 +144,8 @@ class blog extends common { foreach( $articleIdsPublishedOns as $articleId => $articlePublishedOn ) { if( $articlePublishedOn <= time() AND $articleIdsStates[$articleId] ) { // Miniature - $parts = explode('/',$this->getData(['module', $this->getUrl(0), 'posts', $articleId, 'picture'])); - $thumb = str_replace ($parts[(count($parts)-1)],'mini_' . $parts[(count($parts)-1)], $this->getData(['module', $this->getUrl(0), 'posts', $articleId, 'picture'])); + $parts = pathinfo($this->getData(['module', $this->getUrl(0), 'posts', $articleId, 'picture'])); + $thumb = 'mini_' . $parts['basename']; // Créer les articles du flux $newsArticle = $feeds->createNewItem(); // Signature de l'article @@ -153,7 +153,7 @@ class blog extends common { $newsArticle->addElementArray([ 'title' => $this->getData(['module', $this->getUrl(0), 'posts', $articleId, 'title']), 'link' => helper::baseUrl() .$this->getUrl(0) . '/' . $articleId, - 'description' => '' . $this->getData(['module', $this->getUrl(0), 'posts', $articleId, 'title'])
 									 . '' . diff --git a/module/blog/view/index/index.php b/module/blog/view/index/index.php index 6707f704..f8412997 100644 --- a/module/blog/view/index/index.php +++ b/module/blog/view/index/index.php @@ -6,8 +6,8 @@
getData(['module', $this->getUrl(0), 'posts', $articleId, 'picture'])); + $thumb = 'mini_' . $parts['basename']; // Créer la miniature si manquante if (!file_exists( self::FILE_DIR . 'thumb/' . $thumb) ) { $this->makeThumb( self::FILE_DIR . 'source/' . $article['picture'],