Skip to content

Commit

Permalink
fix(comments) : closed by default
Browse files Browse the repository at this point in the history
  • Loading branch information
mrflos committed Sep 20, 2023
1 parent 4ff48c1 commit 9b83a3c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions services/FarmService.php
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ public function initFarmConfig()
$this->wiki->config['yeswiki-farm-acls'][0]['label'] = 'Wiki ouvert';
$this->wiki->config['yeswiki-farm-acls'][0]['read'] = '*';
$this->wiki->config['yeswiki-farm-acls'][0]['write'] = '*';
$this->wiki->config['yeswiki-farm-acls'][0]['comments'] = '+';
$this->wiki->config['yeswiki-farm-acls'][0]['comments'] = 'comments-closed';
} else {
// verifier l'existence des acls
foreach ($this->wiki->config['yeswiki-farm-acls'] as $key => $acls) {
Expand Down Expand Up @@ -211,7 +211,7 @@ public function hasFarmAdmin($wiki)

public function addFarmAdmin($wiki)
{
$wikiConf = $this->getWikiConfig($wiki);
$wikiConf = $this->getWikiConfig($wiki);
if (!empty($this->wiki->config['yeswiki-farm-admin-name']) && !empty($this->wiki->config['yeswiki-farm-admin-pass'])) {
if (!empty($wikiConf['table_prefix'])) {
// change database
Expand All @@ -235,7 +235,7 @@ public function addFarmAdmin($wiki)
// back to main database
$sql = 'USE '.$this->wiki->config['mysql_database'].';';
$this->wiki->query($sql);

return [
'success' => [_t('Super user added for the wiki').' :'. $wiki . '.']
];
Expand Down Expand Up @@ -701,7 +701,7 @@ public function getWikiList()
$fiche['version'] .= '<br /><i>à jour avec le wiki source</i>';
}

// we use database name of local wiki
// we use database name of local wiki
$sql = 'USE '.$wakkaConfig['mysql_database'].';';
$this->wiki->query($sql);

Expand Down

0 comments on commit 9b83a3c

Please sign in to comment.