Données par défaut et update
This commit is contained in:
parent
5c35bd3c1d
commit
f8fa03e7de
@ -1449,11 +1449,15 @@ class common {
|
|||||||
$articleIds = array_keys(helper::arrayCollumn($this->getData(['module',$parent]), 'publishedOn', 'SORT_DESC'));
|
$articleIds = array_keys(helper::arrayCollumn($this->getData(['module',$parent]), 'publishedOn', 'SORT_DESC'));
|
||||||
foreach ($articleIds as $key => $article) {
|
foreach ($articleIds as $key => $article) {
|
||||||
// Droits les deux groupes
|
// Droits les deux groupes
|
||||||
$this->setData(['module', $parent, $article,'editRights','22']);
|
$this->setData(['module', $parent, $article,'editConsent','group']);
|
||||||
// Limite de taille 500
|
// Limite de taille 500
|
||||||
$this->setData(['module', $parent, $article,'commentMaxlength', '500']);
|
$this->setData(['module', $parent, $article,'commentMaxlength', '500']);
|
||||||
// Pas d'approbation des commentaires
|
// Pas d'approbation des commentaires
|
||||||
$this->setData(['module', $parent, $article,'commentApprove', false ]);
|
$this->setData(['module', $parent, $article,'commentApproved', false ]);
|
||||||
|
// pas de notification
|
||||||
|
$this->setData(['module', $parent, $article,'commentNotification', false ]);
|
||||||
|
// groupe de notification
|
||||||
|
$this->setData(['module', $parent, $article,'commentGroupNotification', 3 ]);
|
||||||
}
|
}
|
||||||
// Traitement des commentaires
|
// Traitement des commentaires
|
||||||
if ( is_array($this->getData(['module', $parent, $article,'comment'])) ) {
|
if ( is_array($this->getData(['module', $parent, $article,'comment'])) ) {
|
||||||
|
@ -665,7 +665,7 @@ class init extends common {
|
|||||||
'commentApproved' => false,
|
'commentApproved' => false,
|
||||||
'commentClose' => false,
|
'commentClose' => false,
|
||||||
'commentNotification' => false,
|
'commentNotification' => false,
|
||||||
'commentGroupNotification' => 1
|
'commentGroupNotification' => 3
|
||||||
],
|
],
|
||||||
'mon-deuxieme-article' => [
|
'mon-deuxieme-article' => [
|
||||||
'comment' => [],
|
'comment' => [],
|
||||||
@ -682,7 +682,7 @@ class init extends common {
|
|||||||
'commentApproved' => false,
|
'commentApproved' => false,
|
||||||
'commentClose' => false,
|
'commentClose' => false,
|
||||||
'commentNotification' => false,
|
'commentNotification' => false,
|
||||||
'commentGroupNotification' => 1
|
'commentGroupNotification' => 3
|
||||||
],
|
],
|
||||||
'mon-troisieme-article' => [
|
'mon-troisieme-article' => [
|
||||||
'comment' => [],
|
'comment' => [],
|
||||||
@ -699,7 +699,7 @@ class init extends common {
|
|||||||
'commentApproved' => false,
|
'commentApproved' => false,
|
||||||
'commentClose' => true,
|
'commentClose' => true,
|
||||||
'commentNotification' => false,
|
'commentNotification' => false,
|
||||||
'commentGroupNotification' => 1
|
'commentGroupNotification' => 3
|
||||||
]
|
]
|
||||||
],
|
],
|
||||||
'galeries' => [
|
'galeries' => [
|
||||||
|
Loading…
Reference in New Issue
Block a user