Skip to content
Open
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
6 changes: 3 additions & 3 deletions src/SearchEngineConfig.php
Original file line number Diff line number Diff line change
Expand Up @@ -192,9 +192,9 @@ public static function newFromParameters( Parser $parser, PPFrame $frame, array
// This is a "facet property", since its key is not a valid search parameter
$facet_properties[] = $parameter_value;
} elseif ( $key === "base query" ) {
// The "base query" needs special handling, because it may contain wikitext that should only be parsed
// when the search is loaded.
$expanded_value = $frame->expand( $parameter, PPFrame::RECOVER_ORIG );
// The "base query" is fully expanded at config-store time so that template arguments
// (e.g. {{{Query|default}}}) are resolved to their actual passed values.
$expanded_value = $frame->expand( $parameter );
$search_parameters["base query"] = explode( '=', $expanded_value, 2 )[1] ?? '';
} else {
// This is a "search term parameter"
Expand Down