2011-12-16, 23:55:17
Oleg06 Wrote:why when you install the code in the sidebar on the news page in the sidebar there is a bug
Code:Fatal error: Cannot redeclare i18n_search_display_with_component() (previously declared in D:\home\0getsimple.ru\www\plugins\i18n_search\searchresults.php:142) in D:\home\0getsimple.ru\www\plugins\i18n_search\searchresults.php on line 144
This happens, if you display two search results, one on the page and one in the sidebar. I didn't think about this and will correct it.
Please surround the function by a condition like this:
Code:
if (!function_exists('i18n_search_display_with_component')) {
function i18n_search_display_with_component($item, $component) {
eval("?>" . $component . "<?php ");
}
}