mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-08 13:02:12 +09:00
issue 77 Remove PHP 5.3.x deprecated features
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@8599 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
3fe79a4d1c
commit
61e00415d6
16 changed files with 42 additions and 40 deletions
|
|
@ -143,7 +143,7 @@ class documentController extends document {
|
|||
// List variables
|
||||
if($obj->comment_status) $obj->commentStatus = $obj->comment_status;
|
||||
if(!$obj->commentStatus) $obj->commentStatus = 'DENY';
|
||||
if($obj->commentStatus == 'DENY') $this->_checkCommentStatusForOldVersion(&$obj);
|
||||
if($obj->commentStatus == 'DENY') $this->_checkCommentStatusForOldVersion($obj);
|
||||
if($obj->allow_trackback!='Y') $obj->allow_trackback = 'N';
|
||||
if($obj->homepage && !preg_match('/^[a-z]+:\/\//i',$obj->homepage)) $obj->homepage = 'http://'.$obj->homepage;
|
||||
if($obj->notify_message != 'Y') $obj->notify_message = 'N';
|
||||
|
|
@ -202,7 +202,7 @@ class documentController extends document {
|
|||
|
||||
$obj->lang_code = Context::getLangType();
|
||||
// Insert data into the DB
|
||||
if(!$obj->status) $this->_checkDocumentStatusForOldVersion(&$obj);
|
||||
if(!$obj->status) $this->_checkDocumentStatusForOldVersion($obj);
|
||||
$output = executeQuery('document.insertDocument', $obj);
|
||||
if(!$output->toBool()) {
|
||||
$oDB->rollback();
|
||||
|
|
@ -278,7 +278,7 @@ class documentController extends document {
|
|||
}
|
||||
// List variables
|
||||
if(!$obj->commentStatus) $obj->commentStatus = 'DENY';
|
||||
if($obj->commentStatus == 'DENY') $this->_checkCommentStatusForOldVersion(&$obj);
|
||||
if($obj->commentStatus == 'DENY') $this->_checkCommentStatusForOldVersion($obj);
|
||||
if($obj->allow_trackback!='Y') $obj->allow_trackback = 'N';
|
||||
if($obj->homepage && !preg_match('/^[a-z]+:\/\//i',$obj->homepage)) $obj->homepage = 'http://'.$obj->homepage;
|
||||
if($obj->notify_message != 'Y') $obj->notify_message = 'N';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue