Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion class/actions_searcheverywhere.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');

Expand Down
15 changes: 15 additions & 0 deletions core/modules/modsearcheverywhere.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down