blockem: fix to work with changed 'display_item' hook

This commit is contained in:
Fabio Comuni 2012-03-02 11:33:07 +01:00
parent fe3ff56d7b
commit c406d4d01d
2 changed files with 4 additions and 4 deletions

Binary file not shown.

View File

@ -108,8 +108,8 @@ function blockem_prepare_body(&$a,&$b) {
function blockem_display_item(&$a,&$b) {
if(strstr($b['output'],'id="blockem-wrap-'))
$b['output'] = preg_replace('/\<img(.*?)src=\"(.*?)\" class=\"wall\-item\-photo(.*?)\>/','<img$1src="' . $a->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";
}