summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--includes/functions/functions_rtl.php3
-rw-r--r--includes/functions/functions_utf-8.php3
-rw-r--r--library/WT/Controller/Fanchart.php2
3 files changed, 4 insertions, 4 deletions
diff --git a/includes/functions/functions_rtl.php b/includes/functions/functions_rtl.php
index 7dc8553c4d..dee2abb147 100644
--- a/includes/functions/functions_rtl.php
+++ b/includes/functions/functions_rtl.php
@@ -27,9 +27,6 @@ if (!defined('WT_WEBTREES')) {
exit;
}
-// This is a list of digits. Note that arabic digits are displayed LTR, even in RTL text
-define('WT_UTF8_DIGITS', '0123456789٠١٢٣٤٥٦٧٨٩۰۱۲۳۴۵۶۷۸۹');
-
$SpecialChar = array(' ','.',',','"','\'','/','\\','|',':',';','+','&','#','@','-','=','*','%','!','?','$','<','>',"\n");
$SpecialPar = array('(',')','[',']','{','}');
$SpecialNum = array('0','1','2','3','4','5','6','7','8','9');
diff --git a/includes/functions/functions_utf-8.php b/includes/functions/functions_utf-8.php
index 0417b42fb9..c4592a6714 100644
--- a/includes/functions/functions_utf-8.php
+++ b/includes/functions/functions_utf-8.php
@@ -27,6 +27,9 @@ if (!defined('WT_WEBTREES')) {
define('WT_UTF8_PARENTHESES1', ')(][}{><»«﴾﴿‹›“”‘’');
define('WT_UTF8_PARENTHESES2', '()[]{}<>«»﴿﴾›‹”“’‘');
+// This is a list of digits. Note that arabic digits are displayed LTR, even in RTL text
+define('WT_UTF8_DIGITS', '0123456789٠١٢٣٤٥٦٧٨٩۰۱۲۳۴۵۶۷۸۹');
+
function utf8_strtoupper($string) {
global $ALPHABET_lower, $ALPHABET_upper; // Language-specific conversions, e.g. Turkish dotless i
diff --git a/library/WT/Controller/Fanchart.php b/library/WT/Controller/Fanchart.php
index a87592f565..b76829e382 100644
--- a/library/WT/Controller/Fanchart.php
+++ b/library/WT/Controller/Fanchart.php
@@ -70,7 +70,7 @@ class WT_Controller_Fanchart extends WT_Controller_Chart {
* @return string $text output string
*/
public function split_align_text($data, $maxlen) {
- global $RTLOrd;
+ $RTLOrd = array(215,216,217,218,219);
$lines = explode("\n", $data);
// more than 1 line : recursive calls