Skip to content

Instantly share code, notes, and snippets.

diff --git a/core/modules/help_topics/src/Plugin/Search/HelpSearch.php b/core/modules/help_topics/src/Plugin/Search/HelpSearch.php
index 61d8d67a1e..5b0ca18622 100644
--- a/core/modules/help_topics/src/Plugin/Search/HelpSearch.php
+++ b/core/modules/help_topics/src/Plugin/Search/HelpSearch.php
@@ -210,7 +210,7 @@ protected function findResults() {
->condition('i.langcode', $this->languageManager->getCurrentLanguage()->getId())
->extend(SearchQuery::class)
->extend(PagerSelectExtender::class);
- $query->innerJoin('help_search_items', 'hsi', 'i.sid = hsi.sid AND i.type = :type', [':type' => $this->getType()]);
+ $query->innerJoin('help_search_items', 'hsi', 'i.sid = hsi.sid AND i.type in (:types)', [':types' => $this->getTypes()]);
@andypost
andypost / docker-compose.yaml
Last active August 8, 2022 05:49
Drupal 8 template for core dev + chromium
version: "2.1"
services:
php:
image: skilldlabs/php:8-fpm
container_name: core8
restart: always
working_dir: /var/www/html/web
volumes:
mysql> SELECT
-> sum(stat_value) pages,
-> index_name,
-> sum(stat_value) * @@innodb_page_size size
-> FROM
-> mysql.innodb_index_stats
-> WHERE
-> table_name LIKE 'locales_source'
-> AND database_name = 'd8'
-> AND stat_description LIKE 'Number of pages in the index'
@andypost
andypost / .gitlab-ci.yml
Created May 21, 2018 13:34
base sniffers
image: skilldlabs/php:72
variables:
GIT_DEPTH: "3"
before_script:
- date
- pwd
stages:
@andypost
andypost / mods-custom.log
Created May 21, 2018 13:20
PHPCS drupal.ru/sites/all/modules/custom
FILE: /work/xbbcode_dru/xbbcode_dru.module
----------------------------------------------------------------------
FOUND 3 ERRORS AND 1 WARNING AFFECTING 4 LINES
----------------------------------------------------------------------
3 | ERROR | Missing short description in doc comment
7 | ERROR | Doc comment is empty
11 | WARNING | Do not use drupal_add_css() in hook_init(), use
| | #attached for CSS and JS in your page/form callback
| | or in hook_page_build() instead
@andypost
andypost / php_7.2.4_fail.md
Created March 30, 2018 21:47
php tests failed

arm8

FAILED TEST SUMMARY
---------------------------------------------------------------------
Test ftp_ssl_connect() function : error conditions [ext/ftp/tests/ftp_ssl_connect_error.phpt]
IntlTimeZone::getErrorCode/Message(): basic test [ext/intl/tests/timezone_getErrorCodeMessage_basic.phpt]
IntlTimeZone::getOffset(): errors [ext/intl/tests/timezone_getOffset_error.phpt]
ldap_set_option() - ldap_set_option() operation that should fail [ext/ldap/tests/ldap_set_option_error.phpt]
mb_ereg() compat test 1 [ext/mbstring/tests/mb_ereg-compat-01.phpt]
Test mb_ereg() function : basic functionality [ext/mbstring/tests/mb_ereg_basic.phpt]
@andypost
andypost / Makefile
Last active December 17, 2023 18:43
drupal 10 core contributor docker kickstarter
.PHONY: up upx log down exec exec0 h t
CUID := $(shell id -u)
CGID := $(shell id -g)
IMAGEPHP := skilldlabs/php:8
all: | exec
up:
docker run --rm --name core9 \
"patches": {
"drupal/core": {
"Setting required on radios marks all options required": "https://www.drupal.org/files/issues/drupal-states-required-options-2731991-5.patch",
"Number widget validation can break AJAX actions": "https://www.drupal.org/files/issues/2614250-40.patch",
"Programmatically created translatable content type returns SQL error on content creation": "https://www.drupal.org/files/issues/2599228-31.patch",
"Clearing cache via UI in translated language resets config translation of field labels to default language": "https://www.drupal.org/files/issues/clearing_cache_via_ui-2650434-128.patch",
"ajax.js insert command sometimes wraps content in a div, potentially producing invalid HTML and other bugs": "https://www.drupal.org/files/issues/ajax_js_insert_command-736066-116.patch",
"View entity reference": "https://www.drupal.org/files/issues/2174633-143-entity-reference.patch"
},
"drupal/ctools": {
php-7.1.2 # ./configure --help
`configure' configures this package to adapt to many kinds of systems.
Usage: ./configure [OPTION]... [VAR=VALUE]...
To assign environment variables (e.g., CC, CFLAGS...), specify them as
VAR=VALUE. See below for descriptions of some of the useful variables.
Defaults for the options are specified in brackets.
@andypost
andypost / php71.ini.diff
Created February 19, 2017 02:32
php71 ini diff prod vs dev
php-7.1.2$ diff php.ini-production php.ini-development
--- php.ini-production
+++ php.ini-development
@@ -83,7 +83,7 @@
; development version only in development environments, as errors shown to
; application users can inadvertently leak otherwise secure information.
-; This is php.ini-production INI file.
+; This is php.ini-development INI file.