function apachesolr_search_update_5002 in Apache Solr Search 5.2
Update mis-named variables.
File
- ./
apachesolr_search.install, line 55 - Install and related hooks for apachesolr_search.
Code
function apachesolr_search_update_5002() {
$ret = array();
$date_settings = variable_get('apacehsolr_search_date_boost', '');
$comment_settings = variable_get('apacehsolr_search_comment_boost', '');
if ($date_settings) {
variable_set('apachesolr_search_date_boost', $date_settings);
}
if ($comment_settings) {
variable_set('apachesolr_search_comment_boost', $comment_settings);
}
variable_del('apacehsolr_search_date_boost');
variable_del('apacehsolr_search_comment_boost');
return $ret;
}