|
@@ -182,6 +182,13 @@ class modOpenSurvey extends DolibarrModules
|
|
*/
|
|
*/
|
|
public function init($options = '')
|
|
public function init($options = '')
|
|
{
|
|
{
|
|
|
|
+ global $conf, $langs;
|
|
|
|
+
|
|
|
|
+ $result = $this->_load_tables('/install/mysql/tables/', 'opensurvey');
|
|
|
|
+ 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')
|
|
|
|
+ }
|
|
|
|
+
|
|
// Permissions
|
|
// Permissions
|
|
$this->remove($options);
|
|
$this->remove($options);
|
|
|
|
|