mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-07 10:41:40 +09:00
Regular exp. over-flow.. fix. and delete un-used line.
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@10643 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
37c970fd7f
commit
a4123d0bc6
2 changed files with 6 additions and 3 deletions
|
|
@ -17,5 +17,7 @@ if($called_position != "before_display_content" || Context::get('act')=='dispPag
|
||||||
// Include a file having functions to replace member image name/mark
|
// Include a file having functions to replace member image name/mark
|
||||||
require_once('./addons/member_extra_info/member_extra_info.lib.php');
|
require_once('./addons/member_extra_info/member_extra_info.lib.php');
|
||||||
// 1. Find a part <div class="member_MemberSerialNumber"> content </div> in the output document, change it to image name/mark by using MemberController::transImageName()
|
// 1. Find a part <div class="member_MemberSerialNumber"> content </div> in the output document, change it to image name/mark by using MemberController::transImageName()
|
||||||
$output = preg_replace_callback('!<(div|span|a)([^\>]*)member_([0-9]+)([^\>]*)>([^\<]*)\<\/(div|span|a)\>!is', 'memberTransImageName', $output);
|
$temp_output = preg_replace_callback('!<(div|span|a)([^\>]*)member_([0-9]+)([^\>]*)>([^\<]*)\<\/(div|span|a)\>!is', 'memberTransImageName', $output);
|
||||||
|
if($temp_output) $output = $temp_output;
|
||||||
|
unset($temp_output);
|
||||||
?>
|
?>
|
||||||
|
|
|
||||||
|
|
@ -13,6 +13,7 @@ if($called_position != "before_display_content" || Context::get('act')=='dispPag
|
||||||
|
|
||||||
require_once('./addons/point_level_icon/point_level_icon.lib.php');
|
require_once('./addons/point_level_icon/point_level_icon.lib.php');
|
||||||
|
|
||||||
$oPointController = &getController('point');
|
$temp_output = preg_replace_callback('!<(div|span|a)([^\>]*)member_([0-9\-]+)([^\>]*)>([^\<]*)\<\/(div|span|a)\>!is', 'pointLevelIconTrans', $output);
|
||||||
$output = preg_replace_callback('!<(div|span|a)([^\>]*)member_([0-9\-]+)([^\>]*)>([^\<]*)\<\/(div|span|a)\>!is', 'pointLevelIconTrans', $output);
|
if($temp_output) $output = $temp_output;
|
||||||
|
unset($temp_output);
|
||||||
?>
|
?>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue