diff --git a/blockem.tgz b/blockem.tgz
index 129a00652..ec7119f83 100755
Binary files a/blockem.tgz and b/blockem.tgz differ
diff --git a/blockem/blockem.php b/blockem/blockem.php
index 43f34554e..9134bd0b6 100755
--- a/blockem/blockem.php
+++ b/blockem/blockem.php
@@ -101,15 +101,15 @@ function blockem_prepare_body(&$a,&$b) {
}
}
if($found) {
- $rnd = random_string(8);
+ $rnd = random_string(8);
$b['html'] = '
' . sprintf( t('Blocked %s - Click to open/close'),$word ) . '
' . $b['html'] . '
';
}
}
function blockem_display_item(&$a,&$b) {
- if(strstr($b['output'],'id="blockem-wrap-'))
- $b['output'] = preg_replace('/\/','get_baseurl() . "/images/default-profile-sm.jpg" . '" class="wall-item-photo$3>',$b['output']);
+ if(strstr($b['output']['body'],'id="blockem-wrap-'))
+ $b['output']['thumb'] = $a->get_baseurl() . "/images/default-profile-sm.jpg";
}
@@ -193,4 +193,4 @@ function blockem_init(&$a) {
set_pconfig(local_user(),'blockem','words',$words);
info( t('blockem settings updated') . EOL );
killme();
-}
\ No newline at end of file
+}