mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-06 02:01:40 +09:00
카운터 업데이트를 페이지 로딩후 ajax로 하도록 재변경
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@2893 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
90aa62a6ac
commit
d6ca835a13
1 changed files with 5 additions and 13 deletions
|
|
@ -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;
|
||||
}
|
||||
?>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue