Commit 113be903 authored by Adrian Rossouw's avatar Adrian Rossouw Committed by adrian

Replace some old constants with strings

parent 9f988768
......@@ -24,7 +24,7 @@ function drush_provision_drupal_provision_verify($url = null) {
_provision_create_dir(drush_get_option('config_path'), dt('Provision configuration'), 0700);
_provision_create_dir(drush_get_option('backup_path'), dt('Backup'), 0700);
provision_path("writable", drush_get_option('sites_path'), TRUE, dt("Drupal sites directory is writable by the provisioning script"),
dt("Drupal sites directory is not writable by the provisioning script"), PROVISION_SITES_DIR_NOT_WRITABLE);
dt("Drupal sites directory is not writable by the provisioning script"), 'PROVISION_SITES_DIR_NOT_WRITABLE');
drush_set_option('sites', array_keys((array) provision_drupal_find_sites()), 'drupal');
drush_log(dt("This platform is running @short_name @version", array('@short_name' => 'drupal', '@version' => VERSION)));
......
......@@ -298,24 +298,24 @@ function _provision_create_dir($path, $name, $perms) {
$exists = provision_path("mkdir", $path, TRUE,
$name . ' ' . dt("path has been created."),
$name . ' ' . dt("path could not be created."),
DRUSH_PERM_ERROR);
'DRUSH_PERM_ERROR');
}
if ($exists) {
provision_path("chown", $path, drush_get_option('script_user'),
$name . ' ' . dt("ownership of path has been changed to @confirm."),
$name . ' ' . dt("ownership of path could not be changed to @confirm."),
DRUSH_PERM_ERROR);
'DRUSH_PERM_ERROR');
provision_path("chmod", $path, $perms,
$name . ' ' . dt("permissions of path have been changed to @confirm."),
$name . ' ' . dt("permissions of path could not be changed to @confirm."),
DRUSH_PERM_ERROR );
'DRUSH_PERM_ERROR' );
$writable = provision_path("writable", $path, TRUE,
$name . ' ' . dt("path is writable."),
$name . ' ' . dt("path is not writable."),
DRUSH_PERM_ERROR);
'DRUSH_PERM_ERROR');
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment