Thanks for reporting back and the summary Phoenix,  I updated the
plugin on BoltWire...

Cheers,
Dan


On Sun, Apr 25, 2010 at 9:24 PM, Phoenix Wu <[email protected]> wrote:
> It works indeed. :D
>
> a simple summary:
> original clean function in plugin infox.php
> ===============================================
> function BOLTinfoClean($info, $args) {
>        $before = count($info);
>        $exists = implode(',', BOLTsearchPageList(Array()));
>        foreach ($info as $p => $v) {
>                if (strpos(",$exists,", ",$p,") === false) unset($info[$p]);
>                }
>        $after = count($info);
>        return "Info fields cleaned.\nBefore: $before, After: $after.";
>        }
>
> after tweaking
> ===============================================
> function BOLTinfoClean($info, $args, $target='') {
>        $before = count($info);
>        $exists = implode(',', BOLTsearchPageList(Array()));
>        foreach ($info as $p => $v) {
>                $pp = strtolower(BOLTutf2url($p));
>                if (strpos(",$exists,", ",$pp,") === false) unset($info[$p]);
>                else $out .= "$p: $v\n";
>                }
>        $after = count($info);
>        BOLTsavepage($target, $out);
>        return "Info fields cleaned.\nBefore: $before, After: $after.";
>        }

-- 
You received this message because you are subscribed to the Google Groups 
"BoltWire" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/boltwire?hl=en.

Reply via email to