CMS MADE SIMPLE FORGE

CMS Made Simple Core

 

[#6386] cms_htmlenities in created_date & modified_date

avatar
Created By: manuel (manuel)
Date Submitted: Mon Apr 11 07:35:59 -0400 2011

Assigned To: Robert Campbell (calguy1000)
Version: 1.9.4.1
CMSMS Version: None
Severity: Minor
Resolution: Fixed
State: Closed
Summary:
cms_htmlenities in created_date & modified_date
Detailed Description:
When using Created_date & Modified_date for foreign languages, sometimes special
characters are shown in the dates.

French ex: 
jeudi 03 février 2011
jeudi 03 février 2011

By looking at the function.current_date.php (where this is working correctly), I
found it was using cms_htmlentities in stead of htmlentities.

When changing this in the function.current_date.php & function.modified_date.php
the issue is fixed.

In function.current_date.php:
replace:
	  return htmlentities(strftime($format, $time));;
with:
	  return cms_htmlentities(strftime($format, $time));

In function.modified_date.php
replace:
	  $str = htmlentities(strftime($format, $time));
with:
	  $str = cms_htmlentities(strftime($format, $time));

Greetings,
Manuel


History

Comments
avatar
Date: 2011-04-13 12:42
Posted By: Robert Campbell (calguy1000)

Fixed for CMSMS 1.10.
      
avatar
Date: 2011-10-22 10:27
Posted By: Ronny Krijt (ronnyk)

1.10 is released.
      
avatar
Date: 2011-10-26 05:56
Posted By: manuel (manuel)

thx for the update, time to start exploring the latest and greatest cmsms! :)

Greetings,
Manuel
      
Updates

Updated: 2011-10-22 10:27
cmsms_version_id: => -1
state: Open => Closed

Updated: 2011-04-13 12:42
resolution_id: 5 => 7

Updated: 2011-04-11 07:36
version_id: 28822 => 28949
resolution_id: => 5