위젯 검출 정규 표현식을 수정

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@2892 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
zero 2007-11-01 10:28:42 +00:00
parent f9896fe51a
commit 90aa62a6ac
993 changed files with 9190 additions and 10457 deletions

View file

@ -12,9 +12,17 @@
* 파일내에서 이루어집니다.
**/
// called_position가 before_module_init 이고 module이 admin이 아닐 경우
if($called_position == 'before_module_init' && !$GLOBALS['__counter_addon_called__']) {
if($this->module != 'admin') Context::addJsFile('./modules/counter/tpl/js/counter.js');
$GLOBALS['__counter_addon_called__'] = true;
}
// module이 admin이면 패스~ called_position가 before_display_content 이고 module이 admin이 아닐 경우
if(
Context::get('act')=='procFileDelete' ||
Context::get('module')=='admin' ||
$called_position != 'before_display_content' ||
Context::getRequestMethod()=='XMLRPC' ||
$GLOBALS['__counter_addon_called__']
) return;
$GLOBALS['__counter_addon_called__'] = true;
$oCounterController = &getController('counter');
$oCounterController->procCounterExecute();
?>