ошибка с phptemplate_body_class()

Главные вкладки

Аватар пользователя sergey885 sergey885 23 января 2011 в 16:44

помогите плиз,
мучаюсь уже весь день с ошибкой.

запись из логов:
[Sun Jan 23 08:35:34 2011] [error] [client 212.68.153.232] PHP Fatal error:  Cannot redeclare phptemplate_body_class() (previously declared in /home/user2010/public_html/themes/garland/template.php:9) in /home/user2010/public_html/themes/tb/template.php on line 63, referer: http://url/admin/build/views/edit/TBIblog

ошибка происходит при попытке rescan template files в вьюс. появляется алерт-окошко со следующим:

An error occured at url/admin/build/views/ajax/display/TBIblog/default/analyze-theme

Error description:

причем тут пусто... что затрудняет поиск решения в гугле.

в garland/template.php у меня как и было изначально
<?phpfunction phptemplate_body_class($left, $right) {?>

в tb/template.php 63-я строка - это } после:

<?phpfunction phptemplate_body_class($left, $right) {
  if ($left != '' && $right != '') {
    $class = 'sidebars';
  }
  else {
    if ($left != '') {
      $class = 'sidebar-left';
    }
    if ($right != '') {
      $class = 'sidebar-right';
    }
  }

  if (isset($class)) {
    print ' class="'. $class .'"';
  }
?>

у меня уже просто падают руки ))))