Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Adding an isset() test on ligne 674.
function entity_translation_admin_paths() {
$paths = array();
foreach (entity_get_info() as $entity_type => $info) {
if (entity_translation_enabled($entity_type, NULL, TRUE) && isset($info['translation']['entity_translation']['path schemes'])) {
foreach ($info['translation']['entity_translation']['path schemes'] as $scheme) {
if (!empty($scheme['admin theme'])) {
if (isset($scheme['translate path'])) {
$translate_path = preg_replace('|%[^/]*|', '*', $scheme['translate path']);
$paths[$translate_path] = TRUE;
$paths["$translate_path/*"] = TRUE;
}
if (isset($scheme['edit path'])) {
$edit_path = preg_replace('|%[^/]*|', '*', $scheme['edit path']);
$paths["$edit_path/*"] = TRUE;
}
}
}
}
}
return $paths;
}
Patch attached.
Alexandre
Comment | File | Size | Author |
---|---|---|---|
#1 | entity_translation.patch | 957 bytes | sashainparis |
Comments
Comment #1
sashainparisComment #2
plachCommitted and pushed, thanks.