private function _write_file($uri, $site_id, $parameters = NULL)
{
$this->EE->load->helper('file');
if ($path = $this->_path($uri, $site_id)) {
// Make sure the directory exists
if (file_exists($path) || @mkdir($path, 0777, TRUE)) {
// Write the static file
if (@write_file($path . $this->_static_file, $parameters, 'w+')) {
return TRUE;
}
}
}
return FALSE;
}