/** * Export config action * * @return void */ function action_config_export() { $filename = substr(w3_get_home_url(), strpos(w3_get_home_url(), '//') + 2); @header(sprintf(__('Content-Disposition: attachment; filename=%s.php', 'w3-total-cache'), $filename)); echo $this->_config->export(); die; }
/** * Export config action * * @return void */ function action_config_export() { @header(sprintf(__('Content-Disposition: attachment; filename=%s.php', 'w3-total-cache'), w3_get_blog_id())); echo $this->_config->export(); die; }