projects
/
project/location.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
361dee7
)
No need to load the location now that CCK caches it properly.
author
Brandon Bergren
Wed, 25 Feb 2009 17:42:14 +0000 (17:42 +0000)
committer
Brandon Bergren
Wed, 25 Feb 2009 17:42:14 +0000 (17:42 +0000)
contrib/location_cck/location_cck.module
patch
|
blob
|
blame
|
history
diff --git
a/contrib/location_cck/location_cck.module
b/contrib/location_cck/location_cck.module
index
9a060b6
..
b21fde3
100644
(file)
--- a/
contrib/location_cck/location_cck.module
+++ b/
contrib/location_cck/location_cck.module
@@
-358,7
+358,7
@@
function theme_location_cck_formatter_default($element) {
}
else if (isset($location['lid']) && $location['lid']) {
// "normal" viewing.
- $location = location_load_location($location['lid']);
+ // Location is already cached by CCK, so no need to load it.
return theme('location', $location, $hide);
}
}