Skip to content

Commit 6330be5

Browse files
authored
update as per change request
update as per change request
1 parent 446ddff commit 6330be5

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

system/Format/XMLFormatter.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@
4040
namespace CodeIgniter\Format;
4141

4242
use CodeIgniter\Format\Exceptions\FormatException;
43+
use Config\Format;
4344

4445
/**
4546
* XML data formatter
@@ -56,6 +57,8 @@ class XMLFormatter implements FormatterInterface
5657
*/
5758
public function format($data)
5859
{
60+
$config = new Format();
61+
5962
// SimpleXML is installed but default
6063
// but best to check, and then provide a fallback.
6164
if (! extension_loaded('simplexml'))

0 commit comments

Comments
 (0)