mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-02 01:52:10 +09:00
Merge #1602 탈퇴한 회원의 포인트 아이콘을 숨김 by hjhj3686
* pr/1602: #1603 source compaction @ioz2014 오타 수정 회원이 아닐경우 포인트 아이콘 숨기기
This commit is contained in:
commit
c30341c3c1
1 changed files with 4 additions and 2 deletions
|
|
@ -7,15 +7,17 @@
|
|||
function pointLevelIconTrans($matches)
|
||||
{
|
||||
$member_srl = $matches[3];
|
||||
if($member_srl < 1)
|
||||
// If anonymous or not member_srl go to Hide Point Icon
|
||||
if($member_srl < 1||!$member_srl)
|
||||
{
|
||||
return $matches[0];
|
||||
}
|
||||
|
||||
$orig_text = preg_replace('/' . preg_quote($matches[5], '/') . '<\/' . $matches[6] . '>$/', '', $matches[0]);
|
||||
|
||||
// Check Group Image Mark
|
||||
$oMemberModel = getModel('member');
|
||||
|
||||
// Check Group Image Mark
|
||||
if($oMemberModel->getGroupImageMark($member_srl))
|
||||
{
|
||||
return $orig_text . $matches[5] . '</' . $matches[6] . '>';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue