You are here

function l10n_update_ensure_htaccess in Localization update 6

Same name and namespace in other branches
  1. 7.2 l10n_update.module \l10n_update_ensure_htaccess()
  2. 7 l10n_update.module \l10n_update_ensure_htaccess()

Creates a .htaccess file in the translations directory if it is missing.

3 calls to l10n_update_ensure_htaccess()
l10n_update_admin_settings_form_submit in ./l10n_update.admin.inc
Additional submit handler for update settings.
l10n_update_requirements in ./l10n_update.install
Implementation of hook_requirements().
l10n_update_update_6006 in ./l10n_update.install
Add a .htaccess file to the translations directory.

File

./l10n_update.module, line 505
Download translations from remote localization server.

Code

function l10n_update_ensure_htaccess() {
  $directory = variable_get('l10n_update_download_store', '');
  if ($directory) {
    file_create_htaccess($directory, FALSE);
  }
}