Skip to content
This repository was archived by the owner on Dec 6, 2022. It is now read-only.

[GOVCMSD7-168] Fatal error caused by custom search module in PHPUnit testing#925

Open
suhyeonh wants to merge 2 commits intogovCMS:7.x-3.xfrom
suhyeonh:GOVCMSD7-168
Open

[GOVCMSD7-168] Fatal error caused by custom search module in PHPUnit testing#925
suhyeonh wants to merge 2 commits intogovCMS:7.x-3.xfrom
suhyeonh:GOVCMSD7-168

Conversation

@suhyeonh
Copy link
Contributor

Problem/Motivation

$themes = govcms_supported_themes();
govcms_core_insert_block('search_api_page', 'default_search', $themes, 'header', 0, 0, '', '');
function govcms_supported_themes is called in govcms_search_core.install file

This function is defined in govcms.install file that cannot be guranteed available all the time.

Proposed resolution

Move this function to govcms.profile

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants