New 'libraries' folder in root instalation directory
This commit is contained in:
parent
05b6a91b0c
commit
006992b900
2267 changed files with 50 additions and 65 deletions
|
@ -34,7 +34,7 @@ function print_pdf_drush_command() {
|
|||
'library' => dt('The PDF library to download. Either tcpdf, dompdf or wkhtmltopdf.'),
|
||||
),
|
||||
'options' => array(
|
||||
'path' => dt('A path to the download folder. If omitted Drush will use the default location (@path).', array('@path' => 'sites/all/libraries')),
|
||||
'path' => dt('A path to the download folder. If omitted Drush will use the default location (@path).', array('@path' => 'libraries')),
|
||||
),
|
||||
'aliases' => array('pdfdl'),
|
||||
'bootstrap' => DRUSH_BOOTSTRAP_DRUPAL_ROOT, // No site or config needed.
|
||||
|
@ -52,7 +52,7 @@ function drush_print_pdf_download($library) {
|
|||
if ($download_url) {
|
||||
$path = drush_get_option('path');
|
||||
if (empty($path)) {
|
||||
$path = drush_get_context('DRUSH_DRUPAL_ROOT') . '/sites/all/libraries';
|
||||
$path = drush_get_context('DRUSH_DRUPAL_ROOT') . '/libraries';
|
||||
}
|
||||
|
||||
// Create the path if it does not exist.
|
||||
|
|
Reference in a new issue