mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-09 19:51:42 +09:00
commit
81c5cf42c3
4 changed files with 20 additions and 2 deletions
9
.editorconfig
Normal file
9
.editorconfig
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
root = true
|
||||
|
||||
[*]
|
||||
end_of_line = lf
|
||||
charset = utf-8
|
||||
trim_trailing_whitespace = false
|
||||
insert_final_newline = true
|
||||
indent_style = tab
|
||||
indent_size = 4
|
||||
|
|
@ -127,6 +127,11 @@ class boardController extends board
|
|||
}
|
||||
}
|
||||
|
||||
if($this->module_info->use_anonymous == 'Y') {
|
||||
$obj->member_srl = abs($oDocument->get('member_srl')) * -1;
|
||||
$oDocument->add('member_srl', $obj->member_srl);
|
||||
}
|
||||
|
||||
if($this->module_info->protect_document_regdate > 0 && $this->grant->manager == false)
|
||||
{
|
||||
if($oDocument->get('regdate') < date('YmdHis', strtotime('-'.$this->module_info->protect_document_regdate.' day')))
|
||||
|
|
@ -152,7 +157,7 @@ class boardController extends board
|
|||
$obj->update_order = $obj->list_order = (getNextSequence() * -1);
|
||||
}
|
||||
$obj->reason_update = escape($obj->reason_update);
|
||||
$output = $oDocumentController->updateDocument($oDocument, $obj);
|
||||
$output = $oDocumentController->updateDocument($oDocument, $obj, true);
|
||||
$msg_code = 'success_updated';
|
||||
|
||||
// insert a new document otherwise
|
||||
|
|
|
|||
|
|
@ -607,8 +607,9 @@ class documentController extends document
|
|||
{
|
||||
$obj->password = getModel('member')->hashPassword($obj->password);
|
||||
}
|
||||
|
||||
// If an author is identical to the modifier or history is used, use the logged-in user's information.
|
||||
if(Context::get('is_logged') && $module_info->use_anonymous != 'Y')
|
||||
if(Context::get('is_logged') && !$manual_updated && $module_info->use_anonymous != 'Y')
|
||||
{
|
||||
$logged_info = Context::get('logged_info');
|
||||
if($source_obj->get('member_srl')==$logged_info->member_srl)
|
||||
|
|
@ -620,6 +621,7 @@ class documentController extends document
|
|||
$obj->homepage = $logged_info->homepage;
|
||||
}
|
||||
}
|
||||
|
||||
// For the document written by logged-in user however no nick_name exists
|
||||
if($source_obj->get('member_srl')&& !$obj->nick_name)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -7,6 +7,8 @@
|
|||
*/
|
||||
class rss extends ModuleObject
|
||||
{
|
||||
public $gzhandler_enable = false;
|
||||
|
||||
/**
|
||||
* Additional tasks required to accomplish during the installation
|
||||
*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue