From 00fe6cdfee6b41fec211bdc3e91889cc2fd0e6e6 Mon Sep 17 00:00:00 2001 From: Marco Villegas Date: Sat, 5 Feb 2011 21:43:58 -0500 Subject: [PATCH] #541802 by ao2: Let path_nodeapi() reuse the current path alias language on update. --- modules/path/path.module | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) diff --git modules/path/path.module modules/path/path.module index f8476a1..dfb3231 100644 --- modules/path/path.module +++ modules/path/path.module @@ -211,7 +211,10 @@ function path_node_update($node) { if (!empty($path['alias'])) { // Ensure fields for programmatic executions. $path['source'] = 'node/' . $node->nid; - $path['language'] = isset($node->language) ? $node->language : LANGUAGE_NONE; + // Reuse the current path alias language, don't override it with + // the node content language. Other modules may have changed the + // language, for example to enable the alias for all defined + // languages. path_save($path); } } -- 1.7.2.3