Session::Instance()를 명명법에 맞게 Session::getInstance() 로 변경

This commit is contained in:
2018-04-06 16:47:24 +09:00
parent 18101d9e90
commit ceccb43f82
19 changed files with 75 additions and 75 deletions
+3 -3
View File
@@ -78,7 +78,7 @@ function getRawMessage($mailbox, $msgType, $limit=30, $fromSeq=null){
}
function getMessage($msgType, $nationID=null, $limit=30, $fromSeq=null){
$generalID = Session::Instance()->generalID;
$generalID = Session::getInstance()->generalID;
if($generalID === null){
return [];
}
@@ -280,7 +280,7 @@ function getMailboxList(){
function DecodeMsg($msg, $type, $who, $date, $bg, $num=0) {
$db = DB::db();
$connect=$db->get();
$session = Session::Instance();
$session = Session::getInstance();
//FIXME: 폐기
$query = "select no,nation,name,picture,level from general where owner='{$session->userID}'";
@@ -349,7 +349,7 @@ function moveMsg($table, $msgtype, $msgnum, $msg, $type, $who, $when, $column, $
function MsgDip($bg) {
$db = DB::db();
$connect=$db->get();
$session = Session::Instance();
$session = Session::getInstance();
$query = "select no,nation from general where owner='{$session->userID}'";
$result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"");