mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-04 01:01:41 +09:00
Various fixes to improve PHP 8.0 compatibility
- XmlParser 클래스가 PHP 내장 클래스가 되어버려서 XeXmlParser로 변경 - 함수나 파라미터의 형태가 맞지 않아서 치명적인 오류 나는 곳 수정 - undefined 변수 및 배열 키 다수 수정 (치명적인 오류는 아님) - 계속 수정중...
This commit is contained in:
parent
90084efd75
commit
8c161bc28d
38 changed files with 136 additions and 100 deletions
|
|
@ -347,7 +347,7 @@ class importerAdminController extends importer
|
|||
{
|
||||
if(!$cur) $cur = 0;
|
||||
// Create the xmlParser object
|
||||
$oXmlParser = new XmlParser();
|
||||
$oXmlParser = new XeXmlParser();
|
||||
// Create objects for importing member information
|
||||
$this->oMemberController = getController('member');
|
||||
$this->oMemberModel = getModel('member');
|
||||
|
|
@ -534,7 +534,7 @@ class importerAdminController extends importer
|
|||
{
|
||||
if(!$cur) $cur = 0;
|
||||
// Create the xmlParser object
|
||||
$oXmlParser = new XmlParser();
|
||||
$oXmlParser = new XeXmlParser();
|
||||
// Open an index file
|
||||
$f = fopen($index_file,"r");
|
||||
// Pass if already read
|
||||
|
|
@ -633,7 +633,7 @@ class importerAdminController extends importer
|
|||
function importModule($key, $cur, $index_file, $module_srl)
|
||||
{
|
||||
// Pre-create the objects needed
|
||||
$this->oXmlParser = new XmlParser();
|
||||
$this->oXmlParser = new XeXmlParser();
|
||||
// Get category information of the target module
|
||||
$oDocumentController = getController('document');
|
||||
$oDocumentModel = getModel('document');
|
||||
|
|
@ -1245,7 +1245,7 @@ class importerAdminController extends importer
|
|||
if(!$buff) return array();
|
||||
|
||||
$buff = '<extra_vars>'.$buff;
|
||||
$oXmlParser = new XmlParser();
|
||||
$oXmlParser = new XeXmlParser();
|
||||
$xmlDoc = $this->oXmlParser->parse($buff);
|
||||
if(!count($xmlDoc->extra_vars->key)) return array();
|
||||
|
||||
|
|
|
|||
|
|
@ -34,7 +34,7 @@ class ttimport
|
|||
function importModule($key, $cur, $index_file, $unit_count, $module_srl, $guestbook_module_srl, $user_id, $module_name=null)
|
||||
{
|
||||
// Pre-create the objects needed
|
||||
$this->oXmlParser = new XmlParser();
|
||||
$this->oXmlParser = new XeXmlParser();
|
||||
// Get category information of the target module
|
||||
$oDocumentController = getController('document');
|
||||
$oDocumentModel = getModel('document');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue