|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
enginemike Smarty Regular
Joined: 28 Feb 2006 Posts: 57
|
Posted: Mon Jan 26, 2015 9:07 pm Post subject: Template Capitalization |
|
|
Hello
I am trying to capitalize the first letters of a string.
My code in the template is
....{$menuItem.type|capitalize}.....
I am getting an error message to the effect that preg_replace() has been deprecated.
I looked around but could not find a solution...at least one that seemed reasonable. Any help would be appreciated.
Thank you. |
|
Back to top |
|
AnrDaemon Administrator
Joined: 03 Dec 2012 Posts: 1785
|
Posted: Mon Jan 26, 2015 9:34 pm Post subject: |
|
|
Please post exact error message as it appears on your screen. |
|
Back to top |
|
enginemike Smarty Regular
Joined: 28 Feb 2006 Posts: 57
|
Posted: Mon Jan 26, 2015 10:11 pm Post subject: Template Capitalization |
|
|
Error message is
Deprecated: preg_replace(): the /e modifier is deprecated, use preg_replace_callback in \libs\plugins\modifier.capitalize.php on line 33 |
|
Back to top |
|
AnrDaemon Administrator
Joined: 03 Dec 2012 Posts: 1785
|
Posted: Tue Jan 27, 2015 12:28 pm Post subject: |
|
|
Update your Smarty lib. This has been fixed already. |
|
Back to top |
|
enginemike Smarty Regular
Joined: 28 Feb 2006 Posts: 57
|
Posted: Tue Jan 27, 2015 11:17 pm Post subject: Template Capitalization |
|
|
I have downloaded the new libs module and tested the result. Everything now works as it should.
Thank you. |
|
Back to top |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|