mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-04 01:01:41 +09:00
Fix importer error when processing attachments
This commit is contained in:
parent
f00d2800b5
commit
c213652ccd
1 changed files with 2 additions and 1 deletions
|
|
@ -1090,10 +1090,11 @@ class importerAdminController extends importer
|
|||
}
|
||||
|
||||
if($started) $buff .= $str;
|
||||
|
||||
// If it ends with </attach>, handle attachements
|
||||
if(trim($str) == '</attach>')
|
||||
{
|
||||
$xmlDoc = Rhymix\Framework\Parsers\XEXMLParser::loadXMLString($buff.$str);
|
||||
$xmlDoc = Rhymix\Framework\Parsers\XEXMLParser::loadXMLString($buff);
|
||||
|
||||
$file_obj->source_filename = base64_decode($xmlDoc->attach->filename->body);
|
||||
$file_obj->download_count = base64_decode($xmlDoc->attach->download_count->body);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue