Commit 26baf987 authored by bgm's avatar bgm Committed by Aegir user
Browse files

Provide a more sane default (persist, not temp upload dir)

parent fa6b04a0
......@@ -111,7 +111,7 @@ function msgtplhelper_civicrm_post($op, $objectName, $objectId, &$objectRef) {
$basename = $option_value['name'];
}
// This defaults to $config->uploadDir/msgtplhelper
// This defaults to '[civicrm.files]/persist/msgtplhelper'
// c.f. settings
$destination_directory = Civi::settings()->get('msgtplhelper_dest_directory');
......
......@@ -11,7 +11,7 @@ return [
'name' => 'msgtplhelper_dest_directory',
'type' => 'String',
'add' => '4.7',
'default' => $config->uploadDir . '/msgtplhelper',
'default' => Civi::paths()->getPath('[civicrm.files]/persist/msgtplhelper'),
'title' => E::ts('Destination Directory'),
'is_domain' => 1,
'is_contact' => 0,
......
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