Commit 9ee6894d authored by lyricnz's avatar lyricnz
Browse files

Fix minor coding style issues.

parent 225804a1
......@@ -256,7 +256,7 @@ function geonames_update_7000() {
// other than 'cache' or 'cache_geonames'.
$geonames_cache_table = variable_get('geonames_cache_table', 'cache_geonames');
if ($geonames_cache_table != 'cache' && $geonames_cache_table != 'cache_geonames') {
drupal_set_message("Cache table $geonames_cache_table may no longer be used", 'warning');
drupal_set_message(t('Cache table %table may no longer be used', array('%table' => $geonames_cache_table)), 'warning');
}
variable_del('geonames_cache_table');
}
\ No newline at end of file
......@@ -1076,7 +1076,7 @@ function _geonames_sort(&$results, $key, $order) {
uasort($results, '_results_cmp');
}
else {
drupal_set_message("Results cannot be sorted on '$key' - this field does not exist in results", 'warning');
drupal_set_message(t('Results cannot be sorted on %key - this field does not exist in results', array('%key' => $key)), 'warning');
}
if (drupal_strtolower($order) === 'desc') {
$results = array_reverse($results);
......
......@@ -321,7 +321,7 @@ class GeoNamesAllTestCase extends DrupalWebTestCase {
// Check that ALL services have been executed
$unused_services = count($this->services);
if ($unused_services) {
$this->assert(FALSE, "$unused_services services have not been called: ". join(', ', array_keys($this->services)));
$this->assert(FALSE, "$unused_services services have not been called: " . join(', ', array_keys($this->services)));
}
else {
$num_services = count(geonames_config('services'));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment