diff --git a/class/actions_searcheverywhere.class.php b/class/actions_searcheverywhere.class.php index 9be5299..8a7679c 100644 --- a/class/actions_searcheverywhere.class.php +++ b/class/actions_searcheverywhere.class.php @@ -12,7 +12,7 @@ class ActionsSearcheverywhere extends \searcheverywhere\RetroCompatCommonHookAct function printSearchForm($parameters, &$object, &$action, $hookmanager) { global $langs,$db,$conf; - if (in_array('searchform',explode(':',$parameters['context']))) + if (in_array('searchform',explode(':',$parameters['context'])) && (getDolGlobalString('SEARCHEVERYWHERE_SEARCH_PREVIEW') )) { $langs->load('searcheverywhere@searcheverywhere'); diff --git a/core/modules/modsearcheverywhere.class.php b/core/modules/modsearcheverywhere.class.php index 2193d6c..5b87e8a 100644 --- a/core/modules/modsearcheverywhere.class.php +++ b/core/modules/modsearcheverywhere.class.php @@ -28,8 +28,23 @@ /** * Description and activation class for module searcheverywhere */ +#[\AllowDynamicProperties] class modsearcheverywhere extends DolibarrModules { + /** + * @var int + */ + public $special = 0; + + /** + * @var array + */ + public $dictionnaries = array(); + + /** + * @var array + */ + public $menus = array(); /** * Constructor. Define names, constants, directories, boxes, permissions