mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-04 17:21:39 +09:00
Fix #1697 ncenterlite panel in editor iframe
This commit is contained in:
parent
49dde388fe
commit
e16fd61d4a
1 changed files with 13 additions and 12 deletions
|
|
@ -2,6 +2,14 @@
|
|||
|
||||
class ncenterliteController extends ncenterlite
|
||||
{
|
||||
/**
|
||||
* List of acts to skip.
|
||||
*/
|
||||
public static $_skip_acts = array(
|
||||
'dispNcenterliteNotifyList' => true,
|
||||
'dispEditorFrame' => true,
|
||||
);
|
||||
|
||||
/**
|
||||
* Send any message to a member.
|
||||
*
|
||||
|
|
@ -1003,30 +1011,23 @@ class ncenterliteController extends ncenterlite
|
|||
|
||||
function triggerBeforeDisplay(&$output_display)
|
||||
{
|
||||
// 팝업창이면 중지
|
||||
// Don't show notification panel in popups, iframes, admin dashboard, etc.
|
||||
if(Context::get('ncenterlite_is_popup'))
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
// 자신의 알림목록을 보고 있을 경우엔 알림센터창을 띄우지 않는다.
|
||||
if(Context::get('act') == 'dispNcenterliteNotifyList')
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
if(Context::isLocked())
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
// HTML 모드가 아니면 중지 + admin 모듈이면 중지
|
||||
if(isset(self::$_skip_acts[Context::get('act')]))
|
||||
{
|
||||
return;
|
||||
}
|
||||
if(Context::getResponseMethod() != 'HTML' || Context::get('module') == 'admin')
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
// 로그인 상태가 아니면 중지
|
||||
if(!Context::get('is_logged'))
|
||||
{
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue