diff --git a/onyx2/modules/templates/smarty/plugins/modifier.ucfirst.php b/onyx2/modules/templates/smarty/plugins/modifier.ucfirst.php
index c625363..bb8ff9e 100644
--- a/onyx2/modules/templates/smarty/plugins/modifier.ucfirst.php
+++ b/onyx2/modules/templates/smarty/plugins/modifier.ucfirst.php
@@ -20,5 +20,10 @@
*/
function smarty_modifier_ucfirst($chaine)
{
- return mb_convert_case($chaine, MB_CASE_TITLE, 'UTF-8');
+ $chaineS = strtr($chaine, "áà âäãéèêëẽÃìîïĩóòôöõúùûüũýỳŷÿỹ", "ÃÃÃÃÃÃÃÃÃẼÃÃÃÃĨÃÃÃÃÃÃÃÃÃŨÃỲŶŸỸ");
+ if ($chaineS[0].$chaineS[1] != $chaine[0].$chaine[1]) {
+ return $chaineS[0].$chaineS[1].substr($chaine, 2);
+ } else {
+ return ucfirst($chaine);
+ }
}
diff --git a/onyx2/modules/templates/smarty/plugins/modifier.ucfirst.php3 b/onyx2/modules/templates/smarty/plugins/modifier.ucfirst.php3
new file mode 100644
index 0000000..ea01fe6
--- /dev/null
+++ b/onyx2/modules/templates/smarty/plugins/modifier.ucfirst.php3
@@ -0,0 +1,31 @@
+
+ * Name: capitalize
+ * Purpose: capitalize words in the string
+ * @link http://smarty.php.net/manual/en/language.modifiers.php#LANGUAGE.MODIFIER.CAPITALIZE
+ * capitalize (Smarty online manual)
+ * @author Monte Ohrt
+ * @param string
+ * @return string
+ */
+function smarty_modifier_ucfirst($chaine)
+{
+ $chaineS = strtr($chaine, "áàâäãéèêëẽíìîïĩóòôöõúùûüũýỳŷÿỹ", "ÁÀÂÄÃÉÈÊËẼÍÌÎÏĨÓÒÔÖÕÚÙÛÜŨÝỲŶŸỸ");
+ if ($chaineS[0].$chaineS[1] != $chaine[0].$chaine[1])
+ return $chaineS[0].$chaineS[1].substr($chaine, 2);
+ else
+ return ucfirst($chaine);
+}
+
+
+?>