Advertisement:

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

Offline digger

  • Full Member
  • ***
  • Posts: 676
  • 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: 68,059
    • Arantor on GitHub
To assume is to hope that those who came before had the presence of mind and capacity to implement the dreams of those who would come after.

You either die a hero or live long enough to see yourself become the villain. It seems you have chosen which, and now I must do the same.

Offline digger

  • Full Member
  • ***
  • Posts: 676
  • Gender: Male
    • realdigger on GitHub
    • SMF Russian Community

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 68,059
    • Arantor 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.
To assume is to hope that those who came before had the presence of mind and capacity to implement the dreams of those who would come after.

You either die a hero or live long enough to see yourself become the villain. It seems you have chosen which, and now I must do the same.

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.