- Update to 2.3
PR: 123789 Submitted by: Nick Hilliard <nick@foobar.org> (maintainer)
This commit is contained in:
parent
45654d24be
commit
a236d728b8
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=213282
@ -6,9 +6,8 @@
|
||||
#
|
||||
|
||||
PORTNAME= i18n
|
||||
DISTVERSION= 5.x-2.1
|
||||
DISTVERSION= 5.x-2.3
|
||||
CATEGORIES= www
|
||||
MASTER_SITES= http://ftp.osuosl.org/pub/drupal/files/projects/
|
||||
|
||||
MAINTAINER= nick@foobar.org
|
||||
COMMENT= An internationalisation module for the Drupal CMS
|
||||
|
@ -1,3 +1,3 @@
|
||||
MD5 (drupal/i18n-5.x-2.1.tar.gz) = 7c884e2240e7b55c360a3ff7f527171f
|
||||
SHA256 (drupal/i18n-5.x-2.1.tar.gz) = 7799d1fbd2437a0f1fe8a300d5e7e647b4f395baad18d1dbf428f616a76eed7b
|
||||
SIZE (drupal/i18n-5.x-2.1.tar.gz) = 71684
|
||||
MD5 (drupal/i18n-5.x-2.3.tar.gz) = cc92b18b7a0a758fe2637e1365bf6d9e
|
||||
SHA256 (drupal/i18n-5.x-2.3.tar.gz) = 2b15a2f73e930fc13229da4aafbf1611625e50ecead72fe78a3c95e0a8679cba
|
||||
SIZE (drupal/i18n-5.x-2.3.tar.gz) = 89618
|
||||
|
@ -1,15 +0,0 @@
|
||||
--- i18n.module 2007/05/03 13:48:57 1.36.2.12
|
||||
+++ i18n.module 2007/05/16 17:43:10 1.36.2.13
|
||||
@@ -187,10 +187,10 @@
|
||||
if (isset($node->menu) && !$node->menu['delete'] && $node->menu['title']) {
|
||||
$item = $node->menu;
|
||||
$item['path'] = ($item['path']) ? $item['path'] : "node/$node->nid";
|
||||
-
|
||||
+ $item['type'] = $item['type'] | MENU_MODIFIED_BY_ADMIN;
|
||||
if ($item['mid']) {
|
||||
// Update menu item
|
||||
- db_query("UPDATE {menu} SET pid = %d, path = '%s', title = '%s', description = '%s', weight = %d, type = %d, language = '%s' WHERE mid = %d", $item['pid'], $item['path'], $item['title'], $item['description'], $item['weight'], $item['type'], $item['mid'], $node->language);
|
||||
+ db_query("UPDATE {menu} SET pid = %d, path = '%s', title = '%s', description = '%s', weight = %d, type = %d, language = '%s' WHERE mid = %d", $item['pid'], $item['path'], $item['title'], $item['description'], $item['weight'], $item['type'], $node->language, $item['mid']);
|
||||
drupal_set_message(t('The menu item %title has been updated with node language.', array('%title' => $item['title'])));
|
||||
} elseif(SAVED_NEW == menu_save_item($item)) {
|
||||
// Creating new menu item with node language
|
Loading…
Reference in New Issue
Block a user