Skip to content

Commit

Permalink
Update config.php
Browse files Browse the repository at this point in the history
  • Loading branch information
blackcoder87 committed Jul 23, 2020
1 parent 5a13e3a commit 02f1478
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions application/modules/admin/config/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ public function getUpdate($installedVersion)
// Delete unneeded files and folders
unlink(ROOT_PATH.'/application/modules/imprint/controllers/admin/Settings.php');
removeDir(ROOT_PATH.'/application/modules/imprint/views/admin/settings');

// Privacy module
// Insert new templates
$this->db()->query('INSERT INTO `[prefix]_privacy` (`title`, `urltitle`, `url`, `text`, `show`) VALUES
Expand All @@ -356,7 +356,7 @@ public function getUpdate($installedVersion)
if (empty($visibilitySettings)) {
$databaseConfig->set('statistic_visibleStats', '1,1,1,1,1,1', 0);
}

// Remove the no longer needed settings of the statistic module
$this->db()->queryMulti("DELETE FROM `[prefix]_config` WHERE `key` = 'statistic_site';
DELETE FROM `[prefix]_config` WHERE `key` = 'statistic_visits';
Expand Down Expand Up @@ -691,7 +691,7 @@ public function getUpdate($installedVersion)
$sqlCommands = '';
}

$sqlCommands .= 'UPDATE `[prefix]_comments` SET `key` = \''.$key.'\' WHERE `id` = '.$comment['id'].';';
$sqlCommands .= 'UPDATE `'.$this->db()->getPrefix().'comments` SET `key` = \''.$key.'\' WHERE `id` = '.$comment['id'].';';
$counter++;
}

Expand Down

0 comments on commit 02f1478

Please sign in to comment.