Главная ›
Error in module i18n
Скрыть все описания
Описание ошибки:
Error displayed when you use the module i18n
warning: Parameter 1 to theme_i18n_node_select_translation() expected to be a reference, value given in ../includes/theme.inc on line 656
The cause of the problem in using PHP version 5.3
The solution is simple, but still requires some adjustment package module i18n. To this end, separates the folder is located in the module imageapi and open the file in the editor i18n.pages.inc. We are looking for a line 265 where it should place the following code:
<?php
function theme_i18n_node_select_translation(&$elements) {
$output = '';
if (isset($elements['nid'])) {
$rows = array();
foreach (element_children($elements['nid']) as $lang) {
$rows[] = array(
drupal_render($elements['language'][$lang]),
drupal_render($elements['node'][$lang]),
);
}
$output .= theme('table', array(), $rows);
$output .= drupal_render($elements);
}
return $output;
}
?>Now we replace this function with this code:
<?php
function theme_i18n_node_select_translation($elements) {
$output = '';
if (isset($elements['nid'])) {
$rows = array();
foreach (element_children($elements['nid']) as $lang) {
$rows[] = array(
drupal_render($elements['language'][$lang]),
drupal_render($elements['node'][$lang]),
);
}
$output .= theme('table', array(), $rows);
$output .= drupal_render($elements);
}
return $output;
}
?>- Войдите или зарегистрируйтесь, чтобы получить возможность отправлять комментарии
- Русский
Новые пользователи
- Marat Farkhulin
Сейчас на сайте
Сейчас на сайте 0 пользователей и 2 гостя.
Поиск
Рабочий график
Обратная связь
Рабочие дни
с понедельника по пятницу
Рабочее время
с 10 до 18 по Московскому времени, GMT+3
Технический перерыв
с 13 до 14
