From 8f79fbabdc2c09130a8ba5f2b32aba458e52cf73 Mon Sep 17 00:00:00 2001
From: alecpl <alec@alec.pl>
Date: Thu, 11 Dec 2008 12:29:50 -0500
Subject: [PATCH] - added strtoupper() wrapper

---
 program/include/rcube_shared.inc |   11 +++++++++++
 1 files changed, 11 insertions(+), 0 deletions(-)

diff --git a/program/include/rcube_shared.inc b/program/include/rcube_shared.inc
index b0eabc4..244225c 100644
--- a/program/include/rcube_shared.inc
+++ b/program/include/rcube_shared.inc
@@ -362,6 +362,17 @@
 }
 
 /**
+ * Wrapper function for strtoupper
+ */
+function rc_strtoupper($str)
+{
+  if (function_exists('mb_strtoupper'))
+    return mb_strtoupper($str);
+  else
+    return strtoupper($str);
+}
+
+/**
  * Wrapper function for substr
  */
 function rc_substr($str, $start, $len=null)

--
Gitblit v1.9.1