}
if ( !( $handler instanceof ContentHandler ) ) {
- throw new MWException( "$classOrCallback from \$wgContentHandlers is not " .
- "compatible with ContentHandler" );
+ throw new MWException(
+ var_export( $classOrCallback, true ) . " from \$wgContentHandlers is not " .
+ "compatible with ContentHandler"
+ );
}
}
* @since 1.28
*/
public function getFieldsForSearchIndex( SearchEngine $engine ) {
+ $fields = [];
$fields['category'] = $engine->makeSearchFieldMapping(
'category',
SearchIndexField::INDEX_TYPE_TEXT