get_image is an automatic download pictures to the server module.
http://drupal.org/project/get_image
I downloaded version durpal 7, after 5 hours of testing and just install Wysiwyg Editor ckeditor_3.5.3, then install get_image this module, found after finished core No, not normal to get pictures, but the English can =. =
Specific processes:
chinese of installing core + core - "install Wysiwyg module + ckeditor_3.5.3 - " Installation get_image Module - "Could not get picture
====================
Install core - "install Wysiwyg module + ckeditor_3.5.3 - " Installation get_image module - "can get the picture

Is there any way around this? Of people seeking answers ~

http://drupalchina.org/node/10806

Comments

renwofei423’s picture

This module is written dead body [und]
Body language is part of the module is und ...
Multi-language article is added after the default like zh-hans. . Modify get_image.modulse to:

if (variable_get('get_image_'.$node->type, 0) && !empty($node->body['zh-hans'])) {
   global $_get_image_save_node;
   $_get_image_save_node = $node;
    if ($node->body['zh-hans'][0]) {
      $node->body['zh-hans'][0]['value'] = preg_replace_callback('/(body['zh-hans'][0]['value']);
...
eastcn’s picture

Status: Active » Postponed
andrew@oscailte.org’s picture

Status: Postponed » Needs review

I had the same issue, however I'd prefer to see the module become language-aware instead of hard-coding a language code. This is the change I made to the function for this purpose:


function get_image_node_presave($node) {
  if (variable_get('get_image_'.$node->type, 0) && !empty($node->body[$node->language])) {
    global $_get_image_save_node;
    $_get_image_save_node = $node;
    if ($node->body[$node->language][0]) {
      $node->body[$node->language][0]['value'] = preg_replace_callback('/(<img.*?src=["|\'])(.*?)["|\']/ms', '_get_image_save', $node->body[$node->language][0]['value']);
    }
  }
}