diff --git a/htdocs/blockedlog/admin/blockedlog_list.php b/htdocs/blockedlog/admin/blockedlog_list.php
index b321745f90d..74391677174 100644
--- a/htdocs/blockedlog/admin/blockedlog_list.php
+++ b/htdocs/blockedlog/admin/blockedlog_list.php
@@ -437,12 +437,12 @@ print '';
// User
print '
';
-print $form->select_dolusers($search_fk_user, 'search_fk_user', 1, null, 0, '', '', 0, 0, 0, '', 0, '', 'maxwidth200');
+print $form->select_dolusers($search_fk_user, 'search_fk_user', 1, null, 0, '', '', 0, 0, 0, '', 0, '', 'maxwidth150');
print ' | ';
// Actions code
print '';
-print $form->selectarray('search_code', $block_static->trackedevents, $search_code, 1, 0, 0, '', 1, 0, 0, 'ASC', 'maxwidth200', 1);
+print $form->selectarray('search_code', $block_static->trackedevents, $search_code, 1, 0, 0, '', 1, 0, 0, 'ASC', 'maxwidth150', 1);
print ' | ';
// Ref
diff --git a/htdocs/core/lib/functions.lib.php b/htdocs/core/lib/functions.lib.php
index eb5e1dfc1e7..f6ccdaa18de 100644
--- a/htdocs/core/lib/functions.lib.php
+++ b/htdocs/core/lib/functions.lib.php
@@ -12660,6 +12660,11 @@ function getElementProperties($elementType)
$element = 'productlot';
$subelement = '';
$table_element = 'product_lot';
+ } elseif ($elementType == 'societeaccount') {
+ $classpath = 'societe/class';
+ $classfile = 'societeaccount';
+ $classname = 'SocieteAccount';
+ $module = 'societe';
} elseif ($elementType == 'websitepage') {
$classpath = 'website/class';
$classfile = 'websitepage';
diff --git a/htdocs/core/modules/modWebPortal.class.php b/htdocs/core/modules/modWebPortal.class.php
index cefb27bced3..d0cdcf2e68b 100644
--- a/htdocs/core/modules/modWebPortal.class.php
+++ b/htdocs/core/modules/modWebPortal.class.php
@@ -353,23 +353,6 @@ class modWebPortal extends DolibarrModules
*/
public function init($options = '')
{
- //global $conf, $langs;
-
- //$result = $this->_load_tables('/install/mysql/', 'webportal');
- $result = $this->_load_tables('/webportal/sql/');
- 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')
- }
-
- // Create extrafields during init
- //include_once DOL_DOCUMENT_ROOT.'/core/class/extrafields.class.php';
- //$extrafields = new ExtraFields($this->db);
- //$result1=$extrafields->addExtraField('webportal_myattr1', "New Attr 1 label", 'boolean', 1, 3, 'thirdparty', 0, 0, '', '', 1, '', 0, 0, '', '', 'website', 'isModEnabled("webportal")');
- //$result2=$extrafields->addExtraField('webportal_myattr2', "New Attr 2 label", 'varchar', 1, 10, 'project', 0, 0, '', '', 1, '', 0, 0, '', '', 'website', 'isModEnabled("webportal")');
- //$result3=$extrafields->addExtraField('webportal_myattr3', "New Attr 3 label", 'varchar', 1, 10, 'bank_account', 0, 0, '', '', 1, '', 0, 0, '', '', 'website', 'isModEnabled("webportal")');
- //$result4=$extrafields->addExtraField('webportal_myattr4', "New Attr 4 label", 'select', 1, 3, 'thirdparty', 0, 1, '', array('options'=>array('code1'=>'Val1','code2'=>'Val2','code3'=>'Val3')), 1,'', 0, 0, '', '', 'website', 'isModEnabled("webportal")');
- //$result5=$extrafields->addExtraField('webportal_myattr5', "New Attr 5 label", 'text', 1, 10, 'user', 0, 0, '', '', 1, '', 0, 0, '', '', 'website', 'isModEnabled("webportal")');
-
// Permissions
$this->remove($options);
diff --git a/htdocs/societe/class/societeaccount.class.php b/htdocs/societe/class/societeaccount.class.php
index bfa843e26c7..101e4735edc 100644
--- a/htdocs/societe/class/societeaccount.class.php
+++ b/htdocs/societe/class/societeaccount.class.php
@@ -412,9 +412,9 @@ class SocieteAccount extends CommonObject
*/
public function getTooltipContentArray($params)
{
- global $conf, $langs, $user;
+ global $langs, $user;
- $langs->loadLangs(['companies, commercial']);
+ $langs->loadLangs(['companies, commercial', 'website']);
$datas = [];
$option = $params['option'] ?? '';