ここの情報は古いです。ご理解頂いた上でお取り扱いください。

Changeset 2927


Ignore:
Timestamp:
May 16, 2007, 7:48:49 PM (12 years ago)
Author:
ogawa
Message:

#774:コミュニティトピック削除時にアップロードファイルを削除できていない

Location:
OpenPNE/branches/2.8.x/webapp/lib/db
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • OpenPNE/branches/2.8.x/webapp/lib/db/commu.php

    r2918 r2927  
    23132313
    23142314    // c_commu_topic_comment(画像)
    2315     $sql = 'SELECT image_filename1, image_filename2, image_filename3, filename' .
     2315    $sql = 'SELECT image_filename1, image_filename2, image_filename3' .
    23162316            ' FROM c_commu_topic_comment WHERE c_commu_topic_id = ?';
    23172317    $params = array(intval($c_commu_topic_id));
     
    23222322        image_data_delete($topic_comment['image_filename2']);
    23232323        image_data_delete($topic_comment['image_filename3']);
    2324         db_file_delete_c_file($topic_comment['filename']);
    2325     }
     2324    }
     2325
     2326    $sql = 'SELECT filename FROM c_commu_topic WHERE c_commu_topic_id = ?';
     2327    db_file_delete_c_file(db_get_one($sql, $params));
    23262328
    23272329    $sql = 'DELETE FROM c_commu_topic_comment WHERE c_commu_topic_id = ?';
  • OpenPNE/branches/2.8.x/webapp/lib/db/etc.php

    r2923 r2927  
    551551            image_data_delete($topic_comment['image_filename3']);
    552552        }
     553        db_file_delete_c_file($topic['filename']);
    553554        $sql = 'DELETE FROM c_commu_topic_comment WHERE c_commu_topic_id = ?';
    554555        db_query($sql, $params);
Note: See TracChangeset for help on using the changeset viewer.