[Comoblog-commit] modules/mod_wordswapper/include mod_wordswapper.inc.php,1.1,1.2
Status: Inactive
Brought to you by:
markwallis
|
From: iamdecal <iam...@us...> - 2005-12-11 19:16:26
|
Update of /cvsroot/comoblog/modules/mod_wordswapper/include In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25044/mod_wordswapper/include Modified Files: mod_wordswapper.inc.php Log Message: re commit - dosnt appear to have been saved to cvs properly Index: mod_wordswapper.inc.php =================================================================== RCS file: /cvsroot/comoblog/modules/mod_wordswapper/include/mod_wordswapper.inc.php,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- mod_wordswapper.inc.php 28 Nov 2005 10:54:55 -0000 1.1 +++ mod_wordswapper.inc.php 11 Dec 2005 19:16:15 -0000 1.2 @@ -1,16 +1,16 @@ <?php function mod_wordswapper ($body) { - if (CFG_WORDSWAP_LIST == '') + if (CFG_WORDSWAP_LIST == ''){ return ($body); + } // get a list of all the things we want to swap $fragments = explode("," , CFG_WORDSWAP_LIST); - foreach ($fragments as $piece) + foreach ($fragments as $piece) { // foreach one - split the good from the bad - { - list($badword, $goodword) = explode("|", $piece); - //and swap the bad word for the good word - $body = str_replace($badword, $goodword, $body); - } + list($badword, $goodword) = explode("|", $piece); + //and swap the bad word for the good word + $body = str_replace($badword, $goodword, $body); + } return ($body); } ?> \ No newline at end of file |