diff --git a/module/blog/blog.php b/module/blog/blog.php old mode 100644 new mode 100755 index 20efc777..938409d4 --- a/module/blog/blog.php +++ b/module/blog/blog.php @@ -15,8 +15,10 @@ class blog extends common { - const VERSION = '6.0'; + const VERSION = '6.1'; const REALNAME = 'Blog'; + const DELETE = true; + const UPDATE = '0.0'; const DATADIRECTORY = ''; // Contenu localisé inclus par défaut (page.json et module.json) const EDIT_OWNER = 'owner'; @@ -868,7 +870,11 @@ class blog extends common { if($articlePublishedOn <= time() AND $articleIdsStates[$articleId]) { $articleIds[] = $articleId; // Nombre de commentaires approuvés par article - self::$comments [$articleId] = count ( $this->getData(['module', $this->getUrl(0), 'posts', $articleId, 'comment'])); + if ( is_array($this->getData(['module', $this->getUrl(0), 'posts', $articleId, 'comment'])) ) { + self::$comments [$articleId] = count ( $this->getData(['module', $this->getUrl(0), 'posts', $articleId, 'comment'])); + } else { + self::$comments [$articleId] = '0'; + } } } // Pagination diff --git a/module/blog/changes.md b/module/blog/changes.md old mode 100644 new mode 100755 index 59b428a1..ec93162f --- a/module/blog/changes.md +++ b/module/blog/changes.md @@ -1,3 +1,5 @@ +# version 6.1 +- Icône RSS, lien incorrectd ans l'article. # version 6 - mise à la norme avec le module news : le formulaire est sorti de l'écran principal - Présentation moderner de la liste des articles diff --git a/module/blog/vendor/FeedWriter/ATOM.php b/module/blog/vendor/FeedWriter/ATOM.php old mode 100644 new mode 100755 diff --git a/module/blog/vendor/FeedWriter/Feed.php b/module/blog/vendor/FeedWriter/Feed.php old mode 100644 new mode 100755 diff --git a/module/blog/vendor/FeedWriter/InvalidOperationException.php b/module/blog/vendor/FeedWriter/InvalidOperationException.php old mode 100644 new mode 100755 diff --git a/module/blog/vendor/FeedWriter/Item.php b/module/blog/vendor/FeedWriter/Item.php old mode 100644 new mode 100755 diff --git a/module/blog/vendor/FeedWriter/RSS1.php b/module/blog/vendor/FeedWriter/RSS1.php old mode 100644 new mode 100755 diff --git a/module/blog/vendor/FeedWriter/RSS2.php b/module/blog/vendor/FeedWriter/RSS2.php old mode 100644 new mode 100755 diff --git a/module/blog/vendor/furl/LICENSE b/module/blog/vendor/furl/LICENSE old mode 100644 new mode 100755 diff --git a/module/blog/vendor/furl/README.md b/module/blog/vendor/furl/README.md old mode 100644 new mode 100755 diff --git a/module/blog/vendor/furl/inc.json b/module/blog/vendor/furl/inc.json old mode 100644 new mode 100755 diff --git a/module/blog/vendor/furl/jquery.furl.js b/module/blog/vendor/furl/jquery.furl.js old mode 100644 new mode 100755 diff --git a/module/blog/view/add/add.js.php b/module/blog/view/add/add.js.php old mode 100644 new mode 100755 diff --git a/module/blog/view/add/add.php b/module/blog/view/add/add.php old mode 100644 new mode 100755 diff --git a/module/blog/view/article/article.js.php b/module/blog/view/article/article.js.php old mode 100644 new mode 100755 diff --git a/module/blog/view/article/article.php b/module/blog/view/article/article.php old mode 100644 new mode 100755 diff --git a/module/blog/view/comment/comment.js.php b/module/blog/view/comment/comment.js.php old mode 100644 new mode 100755 diff --git a/module/blog/view/comment/comment.php b/module/blog/view/comment/comment.php old mode 100644 new mode 100755 diff --git a/module/blog/view/config/config.js.php b/module/blog/view/config/config.js.php old mode 100644 new mode 100755 diff --git a/module/blog/view/config/config.php b/module/blog/view/config/config.php old mode 100644 new mode 100755 diff --git a/module/blog/view/edit/edit.js.php b/module/blog/view/edit/edit.js.php old mode 100644 new mode 100755 diff --git a/module/blog/view/edit/edit.php b/module/blog/view/edit/edit.php old mode 100644 new mode 100755 diff --git a/module/blog/view/index/index.php b/module/blog/view/index/index.php old mode 100644 new mode 100755 index f605ba48..3bbe62d5 --- a/module/blog/view/index/index.php +++ b/module/blog/view/index/index.php @@ -121,7 +121,7 @@ - + 'left']); ?>
@@ -130,8 +130,8 @@ : utf8_encode(strftime('%d %B %Y', $article['publishedOn'])); ?>

- getData(['module',$this->getUrl(0), 'config', 'articlesLenght']) !== 0 ? $this->getData(['module',$this->getUrl(0), 'config', 'articlesLenght']) : 500 ?> -

'), 0, $length); ?>... + getData(['module',$this->getUrl(0), 'config', 'articlesLenght']) !== 0 ? $this->getData(['module',$this->getUrl(0), 'config', 'articlesLenght']) : 500 ?> +

'), 0, $lenght); ?>... Lire la suite

diff --git a/module/blog/view/option/option.css b/module/blog/view/option/option.css old mode 100644 new mode 100755 diff --git a/module/blog/view/option/option.php b/module/blog/view/option/option.php old mode 100644 new mode 100755 diff --git a/module/blog/view/rss/rss.php b/module/blog/view/rss/rss.php old mode 100644 new mode 100755