1

주제: owner/header 이상한 부분 발견

Textcube 1.7.6 RC1에서
./lib/piece/owner/header.php 123 line 입니다.

if ($blogMenu['topMenu'] == 'center' && $blogMenu['contentMenu'] == 'dashboard') {
    if (isset($eventMappings['AddPostEditorToolbox'])) {
        foreach ($centerMappings as $tempPlugin) {
            array_push($pluginListForCSS, $tempPlugin['plugin']);
        }
    }
} else if ($blogMenu['topMenu'] == 'entry' && ($blogMenu['contentMenu'] == 'post' || $blogMenu['contentMenu'] == 'edit')) {
    if (isset($eventMappings['AddPostEditorToolbox'])) {
        foreach ($eventMappings['AddPostEditorToolbox'] as $tempPlugin) {
            array_push($pluginListForCSS, $tempPlugin['plugin']);
        }
    }
}

위의 로직대로라면 센터플러그인이 설정되어있어도 AddPostEditorToolbox 이벤트를 사용하는 플러그인이 없으면 관련 plugin-main.css가 삽입되지 않겠는데요. 
isset($eventMappings['AddPostEditorToolbox'])가 아니라
isset($centerMappings)가 아닐까요?:/

천천히 그러나 확실하게 나아가는 길
email:minkyu.shim@gmail.com
blog:www.shimminkyu.com

2

답글: owner/header 이상한 부분 발견

Creorix 작성:

r3345에서 수정되고 r3348에서 반영된 내용이네요.

코드가 아래 if 써 두고 위로 복사한 뒤에 깜빡하고 안 고친 것 같은 느낌인데요? roll

네. 딱 그런 느낌이죠? big_smile

천천히 그러나 확실하게 나아가는 길
email:minkyu.shim@gmail.com
blog:www.shimminkyu.com

3

답글: owner/header 이상한 부분 발견

r6788에서 수정했습니다. smile

"Everything looks different on the other side."

-Ian Malcomm, from Michael Crichton's 'The Jurassic Park'

4

답글: owner/header 이상한 부분 발견

inureyes 작성:

r6788에서 수정했습니다. smile

아.. r6789 아닌가요 wink
그리고 isset($eventMappinps)이 아니라
isset($centerMappings)여야할 것 같습니다.
1.8로 바쁘신데 괜한 수고를 ㅡㅡ;;;;;

천천히 그러나 확실하게 나아가는 길
email:minkyu.shim@gmail.com
blog:www.shimminkyu.com

5

답글: owner/header 이상한 부분 발견

심민규 작성:
inureyes 작성:

r6788에서 수정했습니다. smile

아.. r6789 아닌가요 wink
그리고 isset($eventMappinps)이 아니라
isset($centerMappings)여야할 것 같습니다.
1.8로 바쁘신데 괜한 수고를 ㅡㅡ;;;;;

r6816에 반영했습니다^^ 감사합니다~

"Everything looks different on the other side."

-Ian Malcomm, from Michael Crichton's 'The Jurassic Park'