Closed (fixed)
Project:
Localizer
Version:
5.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
7 Feb 2007 at 17:32 UTC
Updated:
22 Feb 2007 at 13:48 UTC
when use localizer 5.x-1.x-dev
create a new node and translate to other languages
I have got a little problem ,
only english content's node , teaser is OK, but the other language (chinese), the teaser is "
" then nothing,
the other language's content node got no teaser in table "xxx_node_revisions"
If do not patch file in "modules/localizer/patch", no problem at all,
cause "bootstrap.inc.patch" ?
I have notice seems lost 'cache_page' in "bootstrap.inc.patch"
which okay in "common.inc.patch"
if (!$user->uid && $_SERVER['REQUEST_METHOD'] == 'GET' && count(drupal_set_message()) == 0) {
- $cache = cache_get($base_root . request_uri(), 'cache_page');
+ $key = $base_root . request_uri();
+ if(function_exists('cache_key')) $key=cache_key($key);
+ $cache = cache_get($key); if (!$user->uid && $_SERVER['REQUEST_METHOD'] == 'GET' && count(drupal_set_message()) == 0) {
- $cache = cache_get($base_root . request_uri(), 'cache_page');
+ $key = $base_root . request_uri();
+ if(function_exists('cache_key')) $key=cache_key($key);
+ $cache = cache_get($key, 'cache_page');
Comments
Comment #1
Roberto Gerola commentedYou are right.
Thank you.
Fixed.
Comment #2
(not verified) commented