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

Roberto Gerola’s picture

Status: Active » Fixed

You are right.
Thank you.

Fixed.

Anonymous’s picture

Status: Fixed » Closed (fixed)