Skip to content

Commit

Permalink
Website tables are created only if module enabled.
Browse files Browse the repository at this point in the history
  • Loading branch information
eldy committed Feb 22, 2022
1 parent 8cc0f3b commit c63e2c2
Show file tree
Hide file tree
Showing 7 changed files with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions htdocs/core/modules/modWebsite.class.php
Expand Up @@ -164,6 +164,11 @@ public function init($options = '')
{
global $conf, $langs;

$result = $this->_load_tables('/install/mysql/tables/', 'website');
if ($result < 0) {
return -1; // Do not activate module if error 'not allowed' returned when loading module SQL queries (the _load_table run sql with run_sql with the error allowed parameter set to 'default')
}

// Remove permissions and default values
$this->remove($options);

Expand Down
File renamed without changes.

0 comments on commit c63e2c2

Please sign in to comment.