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

Changeset 6538


Ignore:
Timestamp:
Apr 13, 2008, 11:54:44 PM (12 years ago)
Author:
ebihara
Message:

#2182:_db_admin_empty_image_filename->_db_admin_empty_filename

File:
1 edited

Legend:

Unmodified
Added
Removed
  • OpenPNE/trunk/webapp/modules/admin/lib/db_admin.php

    r6537 r6538  
    450450    // c_commu
    451451    $tbl = 'c_commu';
    452     _db_admin_empty_image_filename($tbl, $image_filename);
     452    _db_admin_empty_filename($tbl, $image_filename);
    453453
    454454    // c_commu_topic_comment
    455455    $tbl = 'c_commu_topic_comment';
    456     _db_admin_empty_image_filename($tbl, $image_filename, 'image_filename1');
    457     _db_admin_empty_image_filename($tbl, $image_filename, 'image_filename2');
    458     _db_admin_empty_image_filename($tbl, $image_filename, 'image_filename3');
     456    _db_admin_empty_filename($tbl, $image_filename, 'image_filename1');
     457    _db_admin_empty_filename($tbl, $image_filename, 'image_filename2');
     458    _db_admin_empty_filename($tbl, $image_filename, 'image_filename3');
    459459
    460460    // c_diary
    461461    $tbl = 'c_diary';
    462     _db_admin_empty_image_filename($tbl, $image_filename, 'image_filename_1');
    463     _db_admin_empty_image_filename($tbl, $image_filename, 'image_filename_2');
    464     _db_admin_empty_image_filename($tbl, $image_filename, 'image_filename_3');
     462    _db_admin_empty_filename($tbl, $image_filename, 'image_filename_1');
     463    _db_admin_empty_filename($tbl, $image_filename, 'image_filename_2');
     464    _db_admin_empty_filename($tbl, $image_filename, 'image_filename_3');
    465465
    466466    // c_diary_comment
    467467    $tbl = 'c_diary_comment';
    468     _db_admin_empty_image_filename($tbl, $image_filename, 'image_filename_1');
    469     _db_admin_empty_image_filename($tbl, $image_filename, 'image_filename_2');
    470     _db_admin_empty_image_filename($tbl, $image_filename, 'image_filename_3');
     468    _db_admin_empty_filename($tbl, $image_filename, 'image_filename_1');
     469    _db_admin_empty_filename($tbl, $image_filename, 'image_filename_2');
     470    _db_admin_empty_filename($tbl, $image_filename, 'image_filename_3');
    471471
    472472    // c_member
    473473    $tbl = 'c_member';
    474     _db_admin_empty_image_filename($tbl, $image_filename);
    475     _db_admin_empty_image_filename($tbl, $image_filename, 'image_filename_1');
    476     _db_admin_empty_image_filename($tbl, $image_filename, 'image_filename_2');
    477     _db_admin_empty_image_filename($tbl, $image_filename, 'image_filename_3');
    478 }
    479 
    480 function _db_admin_empty_image_filename($tbl, $image_filename, $column = 'image_filename')
     474    _db_admin_empty_filename($tbl, $image_filename);
     475    _db_admin_empty_filename($tbl, $image_filename, 'image_filename_1');
     476    _db_admin_empty_filename($tbl, $image_filename, 'image_filename_2');
     477    _db_admin_empty_filename($tbl, $image_filename, 'image_filename_3');
     478}
     479
     480function _db_admin_empty_filename($tbl, $image_filename, $column = 'image_filename')
    481481{
    482482    $data = array(
     
    28462846    // c_commu_topic_comment
    28472847    $tbl = 'c_commu_topic_comment';
    2848     _db_admin_empty_image_filename($tbl, $filename, 'filename');
     2848    _db_admin_empty_filename($tbl, $filename, 'filename');
    28492849
    28502850    // h_message
    28512851    $tbl = 'c_message';
    2852     _db_admin_empty_image_filename($tbl, $filename, 'filename');
     2852    _db_admin_empty_filename($tbl, $filename, 'filename');
    28532853}
    28542854
Note: See TracChangeset for help on using the changeset viewer.