nsfw - show word that was matched

This commit is contained in:
Friendika 2011-11-10 18:19:22 -08:00
parent 92358453fa
commit b5741aacf6
2 changed files with 1 additions and 1 deletions

BIN
nsfw.tgz

Binary file not shown.

View file

@ -99,6 +99,6 @@ function nsfw_prepare_body(&$a,&$b) {
} }
if($found) { if($found) {
$rnd = random_string(8); $rnd = random_string(8);
$b['html'] = '<div id="nsfw-wrap-' . $rnd . '" class="fakelink" onclick=openClose(\'nsfw-' . $rnd . '\'); >' . t('NSFW - Click to open/close') . '</div><div id="nsfw-' . $rnd . '" style="display: none; " >' . $b['html'] . '</div>'; $b['html'] = '<div id="nsfw-wrap-' . $rnd . '" class="fakelink" onclick=openClose(\'nsfw-' . $rnd . '\'); >' . sprintf( t('%s - Click to open/close'),$word ) . '</div><div id="nsfw-' . $rnd . '" style="display: none; " >' . $b['html'] . '</div>';
} }
} }