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

Changeset 6533


Ignore:
Timestamp:
Apr 12, 2008, 7:12:39 PM (12 years ago)
Author:
ebihara
Message:

#2182:トピックコメント削除時に関連付いたファイルも削除されるようにした

File:
1 edited

Legend:

Unmodified
Added
Removed
  • OpenPNE/trunk/webapp/lib/db/commu.php

    r6531 r6533  
    24902490function db_commu_delete_c_commu_topic_comment($c_commu_topic_comment_id)
    24912491{
    2492     $sql = 'SELECT image_filename1, image_filename2, image_filename3' .
     2492    $sql = 'SELECT image_filename1, image_filename2, image_filename3, filename' .
    24932493        ' FROM c_commu_topic_comment' .
    24942494        ' WHERE c_commu_topic_comment_id = ?';
     
    24982498    image_data_delete($topic_comment['image_filename2']);
    24992499    image_data_delete($topic_comment['image_filename3']);
     2500    db_file_delete_c_file($topic_comment['filename']);
    25002501
    25012502    $sql = 'DELETE FROM c_commu_topic_comment WHERE c_commu_topic_comment_id = ?';
Note: See TracChangeset for help on using the changeset viewer.