Skip to content

Commit

Permalink
Use Joomla Filesystem to write file
Browse files Browse the repository at this point in the history
  • Loading branch information
wilsonge committed Jul 2, 2018
1 parent 5dbab42 commit 4a5a162
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion libraries/namespacemap.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
defined('_JEXEC') or die;

use Joomla\CMS\Factory;
use Joomla\CMS\Filesystem\File;

/**
* Class JNamespaceMap
Expand Down Expand Up @@ -184,7 +185,7 @@ protected function writeNamespaceFile($elements)

$content[] = ');';

file_put_contents($this->file, implode("\n", $content));
File::write($this->file, implode("\n", $content));
}

/**
Expand Down

0 comments on commit 4a5a162

Please sign in to comment.