summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnkur Rishi2007-06-15 21:26:17 (GMT)
committer Ankur Rishi2007-06-15 21:26:17 (GMT)
commit454b8f6c6118731f1a876e74fa4e484d3e67f04c (patch)
tree67d0335cd246f2a91fa569122a94785a6b834a94
parent88b6d961ef3e619678bc4fd28e382cfd5e124710 (diff)
Committing patch to use proper theming function. Patch courtesy of d.o user
ray007 in http://drupal.org/node/152111
-rw-r--r--location.inc5
1 files changed, 2 insertions, 3 deletions
diff --git a/location.inc b/location.inc
index 6a2cc67..26721b8 100644
--- a/location.inc
+++ b/location.inc
@@ -116,9 +116,8 @@ function theme_location($location = array(), $hide = array()) {
}
$output = '';
- $country_specific_function = 'theme_location_'. (isset($location['country']) ? $location['country'] : '');
- if (function_exists($country_specific_function)) {
- $output .= $country_specific_function($location, $hide);
+ if (isset($location['country']) && ($f = theme_get_function('location_'. $location['country']))) {
+ $output .= call_user_func($f, $location, $hide);
}
elseif (count($location)) {
$output .= "\n";