Skip to content

Instantly share code, notes, and snippets.

View killes's full-sized avatar

killes

  • Germany
View GitHub Profile
diff --git a/modules/infinite_odoscope/infinite_odoscope.drush.inc b/modules/infinite_odoscope/infinite_odoscope.drush.inc
index fe875b3..885e88f 100644
--- a/modules/infinite_odoscope/infinite_odoscope.drush.inc
+++ b/modules/infinite_odoscope/infinite_odoscope.drush.inc
@@ -64,7 +64,7 @@ function drush_infinite_odoscope_odoscope_queue() {
}
}
// hardcoded headers from the view
- $csv_data[] = explode(',', "ID,Published,Promoted to home,Promoted to channel,Title,Channel,Channel-ID,Author-ID,Author-Name,Created,Image,Thumbnail,Image-Text,Tag-IDs,Tag-Names,URL,Base64");
+ $csv_data[] = explode(',', "ID,Published,Title,Channel,Channel-ID,Author-ID,Author-Name,Created,Image,Thumbnail,Image-Text,Tag-IDs,Tag-Names,URL,Base64");
diff --git a/modules/infinite_odoscope/infinite_odoscope.drush.inc b/modules/infinite_odoscope/infinite_odoscope.drush.inc
index 2d96591..532edd8 100644
--- a/modules/infinite_odoscope/infinite_odoscope.drush.inc
+++ b/modules/infinite_odoscope/infinite_odoscope.drush.inc
@@ -80,7 +80,33 @@ function drush_infinite_odoscope_odoscope_queue() {
_odoscope_infinite_execute_view($args_create);
// open the generated file. This sadly depends on executing drush with
// -u 1 because the filename starts with the user ID.
- $handle = fopen('private://1article-update.csv', 'r');
+ $fids = Drupal::entityQuery('file')
diff --git a/Task/Drush/LocaleUpdate.php b/Task/Drush/LocaleUpdate.php
index 78fb928..f5a3981 100644
--- a/Task/Drush/LocaleUpdate.php
+++ b/Task/Drush/LocaleUpdate.php
@@ -31,11 +31,7 @@ class LocaleUpdate extends DrushTask {
* Whether the task should be skipped or not?
*/
protected function skip() {
- // Only update translations outside of Acquia environments.
- // This is currently needed, because the installed Drush version at Acquia