From c406d4d01d2e0470cb8e46cf85497740eedbc65b Mon Sep 17 00:00:00 2001 From: Fabio Comuni Date: Fri, 2 Mar 2012 11:33:07 +0100 Subject: [PATCH] blockem: fix to work with changed 'display_item' hook --- blockem.tgz | Bin 1893 -> 1841 bytes blockem/blockem.php | 8 ++++---- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/blockem.tgz b/blockem.tgz index 129a00652b979469e08b86f9fdb187bcb24c817a..ec7119f832cece136f5a921df77962c2c4a3f473 100755 GIT binary patch literal 1841 zcmV-12hR8(iwFRPp-@i%1MOK`Z`(!|_N(|S&a!GqrIIMccC)Z06`O3(hfOv`llH|i zgb_Isry@B7XXp!B|M#A`P!dHsR z=cfbxeRy)BKkYgi4xc|e89q}dM}y(;1j*s_OA1x3Qbp$@sHBcLVOK@zV4b? z|J%=g9_NqF7U=&N4p9Mi$ z?es&Q26@5fETKV)#1nNJe*?#vmszN|RYFWzh8{{1zXQKJt%5F?khGY_oG*PZFKA8* zI-T+8*6V^tqKId~j+j=56=3aB=ez+LF_93O}bCoLWP*q zVsrl=fOI68s@~yuI!+72UY13Mh=41=iWx<~%L0VFO{j<|l^{9Dm_kk#6apaslLRPRFjK zH!=u?a3L<}eC&GA*H8;8r!yjGS*Wb(gBR?!A6`{gJQq?LF*0^B&0Gj3YSaBte8^nX z*J-t{c@YU1gTl?xi*vT{H|^7{T;O#*O{@K?&1mi_1Fld!&swo9jE)hzf-oUMppw=` zJq_qikaUwWKGw2H-*aCWjxM}gC52LD6eybW20n|%t`)L(U64GdMFTw{Gn&*W^^Oa3 zUToY}YPgjgFL|00bS;(>B54G+H^MJJzka6zLfa5 zYIEw=)T;LCx>UQn@m;tgNl8t3qsiatU1L)ftyYnh)az8edob~Jp|jaP+b8?gaeMmH z+js9Tyt??_rEX9yv3HVmWx>)0nmN1ds1$0kY|ee9^o!STU;gLSn^m-fAXhZ%Yb(5Z z`&tp-?bLU()qRqpt9;GMBr)k+Bi71(W@)%HcC=Bdfk;sx486${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_pCO=Qh06uYgO z@z3;z>QG!fN&r*l+A~pVS-|jdy0#PWh^yNFj&-kK zRmA5Tc0Xr#@bo84B|weO|Mvb%o4j~I)Hf69e7w?~8}Dn=3s9k451dpx=+4518L~=9 z+YzLygek)sHS&||116S6D`K~rKxekHx^_IN&L?+yhHB>*Q&}5x*X|Up+9{@;v6X&> z8PmEert>ahJS-@#>Dy+k`ic>DXYzJbH8i{D-7N9(*(je?2~ux(5QGff^6*=~Nd29z znuqykm+|ZG|NH&3zIp#Y7>-7xzJCATKfeF}5v%#f(pw5_8A})moX4s4XbJ-lnEJUGK}#?rL-$)d f@VJiaxQ^?%j_bIN>$r~VceMTs*y?&?04M+e(8#zV diff --git a/blockem/blockem.php b/blockem/blockem.php index 43f34554..9134bd0b 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'] = ''; } } 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 +} -- 2.39.5