mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-04 01:01:41 +09:00
NOISSUE, trivial code change
This commit is contained in:
parent
f8af9ef6ce
commit
34c7b68c89
7 changed files with 8 additions and 13 deletions
|
|
@ -15,7 +15,7 @@ if(!defined('__XE__'))
|
|||
/**
|
||||
* Just before displaying, change image name/ image mark
|
||||
*/
|
||||
if($called_position != "before_display_content" || Context::get('act') == 'dispPageAdminContentModify')
|
||||
if(Context::get('act') == 'dispPageAdminContentModify' || $called_position != "before_display_content");
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -82,9 +82,7 @@ function memberTransImageName($matches)
|
|||
$nick_name = sprintf('<img src="%s" style="border:0;max-height:16px;vertical-align:middle;margin-right:3px" alt="%s" title="%s" />%s', $group_image->src, $group_image->title, $group_image->description, $nick_name);
|
||||
}
|
||||
|
||||
|
||||
$orig_text = preg_replace('/' . preg_quote($matches[5], '/') . '<\/' . $matches[6] . '>$/', '', $matches[0]);
|
||||
return $orig_text . $nick_name . '</' . $matches[6] . '>';
|
||||
return preg_replace('/' . preg_quote($matches[5], '/') . '<\/' . $matches[6] . '>$/', '', $matches[0]) . $nick_name . '</' . $matches[6] . '>';
|
||||
}
|
||||
|
||||
/* End of file member_extra_info.lib.php */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue