summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGreg Roach <fisharebest@gmail.com>2013-12-19 11:12:08 +0000
committerGreg Roach <fisharebest@gmail.com>2013-12-19 11:12:08 +0000
commit45ad16922a65ce842b9280d8f5f36200bc48dfd5 (patch)
tree91187df94f86e1794c9842e4f4d24e5f115967c2
parent7bdb4a4c2b0b1edd87ce81b0eaceeecadad287ba (diff)
downloadwebtrees-45ad16922a65ce842b9280d8f5f36200bc48dfd5.tar.gz
webtrees-45ad16922a65ce842b9280d8f5f36200bc48dfd5.tar.bz2
webtrees-45ad16922a65ce842b9280d8f5f36200bc48dfd5.zip
functions_rtl.php is for the reports; functions_utf8.php is for mb_string style functions
-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