mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-08 19:21:40 +09:00
맴버모듈의 웹마스터 메일이 지정되지 않았고, 로그인을 하지 않은 경우에는 게시판관리자메일을 보낸이로 설정한다.
This commit is contained in:
parent
8ae2dba0b9
commit
c420844e9f
2 changed files with 8 additions and 2 deletions
|
|
@ -148,6 +148,12 @@ class boardController extends board
|
|||
{
|
||||
$oModuleModel = getModel('module');
|
||||
$member_config = $oModuleModel->getModuleConfig('member');
|
||||
$is_logged = Context::get('is_logged');
|
||||
|
||||
if(!$is_logged && $member_config->webmaster_email)
|
||||
{
|
||||
$obj->email_address = $this->module_info->admin_mail;
|
||||
}
|
||||
|
||||
$oMail = new Mail();
|
||||
$oMail->setTitle($obj->title);
|
||||
|
|
|
|||
|
|
@ -316,8 +316,8 @@ class documentController extends document
|
|||
if(!$obj->email_address) $obj->email_address = '';
|
||||
if(!$isRestore) $obj->ipaddress = $_SERVER['REMOTE_ADDR'];
|
||||
|
||||
// can modify regdate only manager
|
||||
$grant = Context::get('grant');
|
||||
// can modify regdate only manager
|
||||
$grant = Context::get('grant');
|
||||
if(!$grant->manager)
|
||||
{
|
||||
unset($obj->regdate);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue