Simple Machines Community Forum

SMF Development => Bug Reports => Fixed or Bogus Bugs => Topic started by: digger on November 11, 2009, 08:42:45 AM

Title: [RC2 Public] Bug with utf-8 with the week days in Calendar
Post by: digger on November 11, 2009, 08:42:45 AM
In the Calendar.template.php should be replaced "substr" with "$smcFunc['substr']"

find

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;   


find

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


replace with
$smcFunc['substr']($txt['days'][$day], 0, 1)
Title: Re: [RC2 Public] Bug with utf-8 with the week days in Calendar
Post by: Arantor on November 11, 2009, 10:52:31 AM
This is related to Bug #3738: strlen and substr calls should by $smcFunc['strlen'] and $smcFunc['substr'] (http://dev.simplemachines.org/mantis/view.php?id=3738)
Title: Re: [RC2 Public] Bug with utf-8 with the week days in Calendar
Post by: digger on November 11, 2009, 11:18:53 AM
Quote from: Arantor on November 11, 2009, 10:52:31 AM
This is related to Bug #3738: strlen and substr calls should by $smcFunc['strlen'] and $smcFunc['substr'] (http://dev.simplemachines.org/mantis/view.php?id=3738)

It was reported in April and still not fixed.
Title: Re: [RC2 Public] Bug with utf-8 with the week days in Calendar
Post by: Arantor on November 11, 2009, 02:40:44 PM
Reason being there are some serious performance concerns with it.
Title: Re: [RC2 Public] Bug with utf-8 with the week days in Calendar
Post by: Joshua Dickerson on November 12, 2011, 09:46:22 PM
I assume this bug was fixed?
Title: Re: [RC2 Public] Bug with utf-8 with the week days in Calendar
Post by: emanuele on November 13, 2011, 05:49:26 AM
Fixed for sure in trunk.