function update_map() { if (is_multisite()) { $rt_nginx_map = $this->get_map(); if ($fp = fopen($this->functional_asset_path() . 'map.conf', 'w+')) { fwrite($fp, $rt_nginx_map); fclose($fp); return true; } } }