Advertisement:

Author Topic: [RC2 Public] Bug with utf-8 with the week days in Calendar  (Read 3384 times)

Offline digger

  • Sr. Member
  • ****
  • Posts: 733
  • Gender: Male
    • realdigger on GitHub
    • SMF Russian Community
[RC2 Public] Bug with utf-8 with the week days in Calendar
« on: November 11, 2009, 08:42:45 AM »
In the Calendar.template.php should be replaced "substr" with "$smcFunc['substr']"

find
Code: [Select]
function template_show_month_grid($grid_name)
{
global $context, $settings, $options, $txt, $scripturl, $modSettings;

replace with
Code: [Select]
function template_show_month_grid($grid_name)
{
global $context, $settings, $options, $txt, $scripturl, $modSettings, $smcFunc;   

find
Code: [Select]
substr($txt['days'][$day], 0, 1)

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

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 69,326
    • StoryBB/StoryBB on GitHub
Don’t try to tell me that some power can corrupt a person. You haven’t had enough to know what it’s like.

No good deed goes unpunished / No act of charity goes unresented.


Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 69,326
    • StoryBB/StoryBB on GitHub
Re: [RC2 Public] Bug with utf-8 with the week days in Calendar
« Reply #3 on: November 11, 2009, 02:40:44 PM »
Reason being there are some serious performance concerns with it.
Don’t try to tell me that some power can corrupt a person. You haven’t had enough to know what it’s like.

No good deed goes unpunished / No act of charity goes unresented.

Offline Joshua Dickerson

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 12,775
  • Gender: Male
    • joshuaadickerson on GitHub
    • joshuaadickerson on LinkedIn
Re: [RC2 Public] Bug with utf-8 with the week days in Calendar
« Reply #4 on: November 12, 2011, 09:46:22 PM »
I assume this bug was fixed?
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?

Offline emanuele

  • SMF Super Hero
  • *******
  • Posts: 14,156
  • Gender: Male
  • THERE'S JUST ME
Re: [RC2 Public] Bug with utf-8 with the week days in Calendar
« Reply #5 on: November 13, 2011, 05:49:26 AM »
Fixed for sure in trunk.


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.