글 삭제시 카테고리가 있으면 해당 카테고리의 글 갯수를 전체 글갯수를 새로 구해서 세팅하도록 변경

git-svn-id: http://xe-core.googlecode.com/svn/trunk@1902 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
zero 2007-07-11 05:51:46 +00:00
parent c16c979640
commit 7935a58330

View file

@ -254,13 +254,13 @@
$oTagController->deleteTag($document_srl, $is_admin);
// 첨부 파일 삭제
if($document->uploaded_count) {
if($oDocument->hasUploadedFiles()) {
$oFileController = &getController('file');
$oFileController->deleteFiles($document_srl);
}
// 카테고리가 있으면 카테고리 정보 변경
if($document->category_srl) $this->updateCategoryCount($oDocument->get('category_srl'));
if($oDocument->get('category_srl')) $this->updateCategoryCount($oDocument->get('category_srl'));
// commit
$oDB->commit();