카운터 업데이트를 페이지 로딩후 ajax로 하도록 재변경

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@2893 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
zero 2007-11-01 10:42:21 +00:00
parent 90aa62a6ac
commit d6ca835a13

View file

@ -12,17 +12,9 @@
* 파일내에서 이루어집니다.
**/
// 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();
// 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;
}
?>