|
From: FlorinCB <ory...@us...> - 2008-08-23 15:48:22
|
Update of /cvsroot/mxbb/core/includes In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv26350 Modified Files: mx_functions_bbcode.php Log Message: fix Index: mx_functions_bbcode.php =================================================================== RCS file: /cvsroot/mxbb/core/includes/mx_functions_bbcode.php,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -d -r1.12 -r1.13 *** mx_functions_bbcode.php 15 Jul 2008 22:02:45 -0000 1.12 --- mx_functions_bbcode.php 23 Aug 2008 15:48:13 -0000 1.13 *************** *** 270,274 **** --- 270,287 ---- } // bbencode_second_pass() + + /** + * This is used to change a [*] tag into a [*:$uid] tag as part + * of the first-pass bbencoding of [list] tags. It fits the + * standard required in order to be passed as a variable + * function into bbencode_first_pass_pda(). + */ + function replace_listitems($text, $uid) + { + $text = str_replace("[*]", "[*:$uid]", $text); + return $text; + } + function make_bbcode_uid() { *************** *** 528,532 **** if ($use_function_pointer) { ! $between_tags = $func($between_tags, $uid); } --- 541,545 ---- if ($use_function_pointer) { ! $between_tags = $this->$func($between_tags, $uid); } |