Существует незначительная ошибка в IP.Calendar 3.2.2, не отображаются дни рождения. Чтобы устранить эту ошибку, Пройдите на FTP и откройте файл
admin/applications_addon/ips/calendar/sources/hooks.php
Найдите:
if( $count > count($users) )
{
$classToLoad = IPSLib::loadLibrary( IPSLib::getAppDir( 'calendar' ) . "/sources/functions.php", 'app_calendar_classes_functions', 'calendar' );
$functions = new $classToLoad( $this->registry );
$calendar = $functions->getCalendar();
$data = array(
'id' => $calendar['cal_id'],
'title' => $calendar['cal_title_seo'],
'year' => $year,
'month' => $month,
'day' => $day,
);
Замените на:
if( $count > count($users) )
{
$classToLoad = IPSLib::loadLibrary( IPSLib::getAppDir( 'calendar' ) . "/sources/functions.php", 'app_calendar_classes_functions', 'calendar' );
$functions = new $classToLoad( $this->registry );
$calendars = $functions->getCalendars();
foreach( $calendars as $calendar )
{
/* We need to grab first calendar that allows birthdays */
if( !$calendar['cal_bday_limit'] )
{
continue;
}
$data = array(
'id' => $calendar['cal_id'],
'title' => $calendar['cal_title_seo'],
'year' => $year,
'month' => $month,
'day' => $day,
);
break;
}
}
if( !count($data) )
{
return '';
}
Сохранить и залить обратно.
Источник: ipbzona.ru


Май 27th, 2012
Archi
Опубликовано в рубрике
Метки: