Oops forgot to pass the var

This commit is contained in:
alistair3149 2020-01-01 17:40:56 -05:00
parent 7e42f8c432
commit dc454604d4
No known key found for this signature in database
GPG key ID: 94D081060FD3DD9C

View file

@ -60,6 +60,13 @@ class CitizenHooks {
return false; return false;
} }
try {
$vars['wgCitizenSearchDescriptionSource'] = $config->get( 'CitizenSearchDescriptionSource' );
} catch ( ConfigException $e ) {
// Should not happen
$vars['wgCitizenSearchDescriptionSource'] = 'textextracts';
}
try { try {
$vars['wgCitizenMaxSearchResults'] = $config->get( 'CitizenMaxSearchResults' ); $vars['wgCitizenMaxSearchResults'] = $config->get( 'CitizenMaxSearchResults' );
} catch ( ConfigException $e ) { } catch ( ConfigException $e ) {
@ -67,13 +74,6 @@ class CitizenHooks {
$vars['wgCitizenMaxSearchResults'] = 6; $vars['wgCitizenMaxSearchResults'] = 6;
} }
try {
$vars['wgCitizenSearchExchars'] = $config->get( 'CitizenSearchExchars' );
} catch ( ConfigException $e ) {
// Should not happen
$vars['wgCitizenSearchExchars'] = 60;
}
return true; return true;
} }