This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
selenium-server -role node -hub http://localhost:4444/grid/register |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
phantomjs: | |
image: wernight/phantomjs:2 | |
volumes_from: | |
- php | |
links: | |
- nginx | |
entrypoint: phantomjs | |
command: "--ssl-protocol=any --ignore-ssl-errors=true /var/www/html/vendor/jcalderonzumba/gastonjs/src/Client/main.js 8510 1024 768" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/modules/contenta_enhancements/contenta_enhancements.module b/modules/contenta_enhancements/contenta_enhancements.module | |
index d1b9951..8f0364b 100644 | |
--- a/modules/contenta_enhancements/contenta_enhancements.module | |
+++ b/modules/contenta_enhancements/contenta_enhancements.module | |
@@ -362,7 +362,7 @@ function contenta_enhancements_toolbar_alter(&$items) { | |
function contenta_enhancements_node_view_alter(array &$build, NodeInterface $entity, EntityViewDisplayInterface $display) { | |
// Make sure the help pages are left alone. | |
// TODO: Use the concept of view modes to solve this problem, not this hack. | |
- if ($entity->bundle() === 'page') { | |
+ if ($entity->bundle() === 'page' || ($display->getMode() !== 'default' && $display->getMode() !== 'full')) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
location ^~ /simplesaml { | |
alias /var/www/html/web/simplesaml; | |
location ~ ^(?<prefix>/simplesaml)(?<phpfile>.+?\.php)(?<pathinfo>/.*)?$ { | |
include /etc/nginx/fastcgi.conf; | |
fastcgi_pass php; | |
fastcgi_param SCRIPT_FILENAME $document_root$phpfile; | |
fastcgi_param PATH_INFO $pathinfo if_not_empty; | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/TermMerger.php b/src/TermMerger.php | |
index 2b341f6..d96ae0d 100644 | |
--- a/src/TermMerger.php | |
+++ b/src/TermMerger.php | |
@@ -177,13 +177,30 @@ class TermMerger implements TermMergerInterface { | |
} | |
$referenceUpdated = FALSE; | |
- foreach ($values as &$value) { | |
+ $targetTermExists = FALSE; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if ($file_wrapper = file_stream_wrapper_get_instance_by_uri($file->uri)) { | |
// Specifiy the Fotoweb property to update. | |
$metadata_key_to_update = 60; | |
// Set the new value. | |
$file->metadata['asset_metadata'][$metadata_key_to_update]['value'] = 'My new caption'; | |
// Update the metadata and trigger the file_save, which could | |
// overwrite the $file->metadata with the actual asset metadata | |
// for data consistency. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function mymodule_file_presave($file) { | |
if ($file->type === 'image' && file_uri_scheme($file->uri) === 'fotoweb') { | |
$wrapper = entity_metadata_wrapper('file', $file); | |
$field_map = array( | |
'field_file_image_alt_text' => 120, | |
'field_file_image_title_text' => 5, | |
'field_image_caption' => 121, | |
'field_image_byline' => 80, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Update PHP 7.0 | |
find . -maxdepth 2 -name "docker-compose.yml" -exec sed -i '' 's#wodby/drupal-php:7.0-[0-9].[0-9].[0-9]#wodby/drupal-php:7.0-2.4.6#g' '{}' \; | |
# Update PHP 7.1 | |
find . -maxdepth 2 -name "docker-compose.yml" -exec sed -i '' 's#wodby/drupal-php:7.1-[0-9].[0-9].[0-9]#wodby/drupal-php:7.1-2.4.6#g' '{}' \; | |
# Update MariaDB | |
find . -maxdepth 2 -name "docker-compose.yml" -exec sed -i '' 's#wodby/mariadb:10.1-[0-9].[0-9].[0-9]#wodby/mariadb:10.1-2.3.4#g' '{}' \; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Remove and reinstall drush patchfile. | |
docker-compose exec --user root php sh -c 'if [ -d "/home/www-data/.drush/drush-patchfile" ]; then rm -rf /home/www-data/.drush/drush-patchfile; fi;' | |
docker-compose exec --user 82 php sh -c 'git clone https://[email protected]/szeidler/drush-patchfile.git /home/www-data/.drush/drush-patchfile' | |
# Remove and reinstall registry rebuild. | |
docker-compose exec --user root php sh -c 'if [ -d "/home/www-data/.drush/registry_rebuild" ]; then rm -rf /home/www-data/.drush/registry_rebuild; fi;' | |
docker-compose exec --user 82 php drush @none dl registry_rebuild-7.x |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
drush rsync @source_alias:%files @target_alias:%files --dry-run --ignore-existing --progress |