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

Changeset 7206


Ignore:
Timestamp:
May 14, 2008, 8:20:05 PM (11 years ago)
Author:
ebihara
Message:

#2414:c_member_config のデフォルト値を指定できるようにした

Location:
OpenPNE/trunk/webapp
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • OpenPNE/trunk/webapp/lib/util/mail_send.php

    r7096 r7206  
    890890
    891891    // 日記オーナーの通知設定が無ければ通知しない
    892     $target_c_member_config = db_member_c_member_config4c_member_id($target_c_member_id);
     892    $target_c_member_config = util_get_c_member_config($target_c_member_id);
    893893    if (!$target_c_member_config['SEND_DIARY_COMMENT_MAIL_KTAI']) {
    894894        return false;
  • OpenPNE/trunk/webapp/lib/util/util.php

    r6688 r7206  
    885885}
    886886
     887function util_get_c_member_config($c_member_id)
     888{
     889    $default_config = array(
     890        'SEND_DIARY_COMMENT_MAIL_KTAI' => 0,
     891        'IS_DISPLAY_NEWDIARY_HOME' => 0,
     892        'IS_DISPLAY_NEWTOPIC_HOME' => 0,
     893        'DISPLAY_CHANGE_NEWDIARY_HOME_KTAI' => 0,
     894        'DISPLAY_CHANGE_NEWTOPIC_HOME_KTAI' => 0,
     895    );
     896
     897    $member_config = array_merge($default_config, db_member_c_member_config4c_member_id($c_member_id));
     898
     899    return $member_config;
     900}
     901
    887902?>
  • OpenPNE/trunk/webapp/modules/ktai/init.inc

    r6446 r7206  
    8787    if ($is_secure) {
    8888        $u = $GLOBALS['AUTH']->uid();
    89         $smarty->assign('C_MEMBER_CONFIG',db_member_c_member_config4c_member_id($u));
     89        $smarty->assign('C_MEMBER_CONFIG', util_get_c_member_config($u));
    9090    }
    9191
  • OpenPNE/trunk/webapp/modules/pc/init.inc

    r6446 r7206  
    6969    if ($is_secure) {
    7070        $u = $GLOBALS['AUTH']->uid();
    71         $smarty->assign('C_MEMBER_CONFIG',db_member_c_member_config4c_member_id($u));
     71        $smarty->assign('C_MEMBER_CONFIG', util_get_c_member_config($u));
    7272    }
    7373
Note: See TracChangeset for help on using the changeset viewer.