Rebuild htaccess files.

1 call to advagg_admin_recreate_htaccess()
advagg_admin_settings_form_submit in includes/admin.inc
Validate form values. Used to unset variables before they get saved.

File

includes/admin.inc, line 711

Code

function advagg_admin_recreate_htaccess() {
    list($css_path, $js_path) = advagg_get_root_files_dir();
    $css_path .= '/.htaccess';
    $js_path .= '/.htaccess';
    file_unmanaged_delete($css_path);
    advagg_htaccess_check_generate($css_path, TRUE);
    file_unmanaged_delete($js_path);
    advagg_htaccess_check_generate($js_path, TRUE);
    drupal_set_message(t('Advanced CSS/JS Aggregation htaccess files rebuilt.'));
}