[RC2 Public] Bug with utf-8 with the week days in Calendar

Started by digger, November 11, 2009, 08:42:45 AM

Previous topic - Next topic


In the Calendar.template.php should be replaced "substr" with "$smcFunc['substr']"


function template_show_month_grid($grid_name)
global $context, $settings, $options, $txt, $scripturl, $modSettings;

replace with

function template_show_month_grid($grid_name)
global $context, $settings, $options, $txt, $scripturl, $modSettings, $smcFunc;   


substr($txt['days'][$day], 0, 1)

replace with
$smcFunc['substr']($txt['days'][$day], 0, 1)


Reason being there are some serious performance concerns with it.

Joshua Dickerson

Come work with me at Promenade Group

Need help? See the wiki. Want to help SMF? See the wiki!

Did you know you can help develop SMF? See us on Github.

How have you bettered the world today?


Take a peek at what I'm doing! ;D

Hai bisogno di supporto in Italiano?

Aiutateci ad aiutarvi: spiegate bene il vostro problema: no, "non funziona" non è una spiegazione!!
1) Cosa fai,
2) cosa ti aspetti,
3) cosa ottieni.