NOISSUE, trivial code change

This commit is contained in:
ngleader 2013-11-25 21:26:40 +09:00
parent f8af9ef6ce
commit 34c7b68c89
7 changed files with 8 additions and 13 deletions

View file

@ -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;
}

View file

@ -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 */