summaryrefslogtreecommitdiff
path: root/modules/aggregator
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2004-08-04 20:40:01 +0000
committerDries Buytaert <dries@buytaert.net>2004-08-04 20:40:01 +0000
commitc71bfded3dea1754633f29ac8e81fb3ab46b766a (patch)
tree77a7a843b7b6d9c0f857c749b9acbab19c1f8e94 /modules/aggregator
parenta52cf8297aa8c012065a4cb4e3f6a6ee3e258fc1 (diff)
downloadbrdo-c71bfded3dea1754633f29ac8e81fb3ab46b766a.tar.gz
brdo-c71bfded3dea1754633f29ac8e81fb3ab46b766a.tar.bz2
- Patch #9657: more intelligent theme() function. Hopefully, Adrian will be
able to use this patch too.
Diffstat (limited to 'modules/aggregator')
-rw-r--r--modules/aggregator/aggregator.module4
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/aggregator/aggregator.module b/modules/aggregator/aggregator.module
index 694568ad2..903535461 100644
--- a/modules/aggregator/aggregator.module
+++ b/modules/aggregator/aggregator.module
@@ -1039,7 +1039,9 @@ function theme_aggregator_block_item($item, $feed = 0) {
global $user;
if ($user->uid && module_exist('blog') && user_access('edit own blog')) {
- $output .= '<div class="icon">'. l('<img src="'. theme('image', 'blog.png') .'" alt="'. t('blog it') .'" title="'. t('blog it') .'" />', 'node/add/blog', array('title' => t('Comment on this news item in your personal blog.'), 'class' => 'blog-it'), "iid=$item->iid") .'</div>';
+ if ($image = theme('misc/blog.png', t('blog it'), t('blog it'))) {
+ $output .= '<div class="icon">'. l($image, 'node/add/blog', array('title' => t('Comment on this news item in your personal blog.'), 'class' => 'blog-it'), "iid=$item->iid") .'</div>';
+ }
}
// external link