Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpmyadmin/phpmyadmin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'libraries/plugins/schema/pdf/Pdf_Relation_Schema.class.php')
-rw-r--r--libraries/plugins/schema/pdf/Pdf_Relation_Schema.class.php7
1 files changed, 2 insertions, 5 deletions
diff --git a/libraries/plugins/schema/pdf/Pdf_Relation_Schema.class.php b/libraries/plugins/schema/pdf/Pdf_Relation_Schema.class.php
index dfba41beee..d033769533 100644
--- a/libraries/plugins/schema/pdf/Pdf_Relation_Schema.class.php
+++ b/libraries/plugins/schema/pdf/Pdf_Relation_Schema.class.php
@@ -345,16 +345,13 @@ class PMA_Schema_PDF extends PMA_PDF
*/
function NbLines($w, $txt)
{
- /** @var PMA_String $pmaString */
- $pmaString = $GLOBALS['PMA_String'];
-
$cw = &$this->CurrentFont['cw'];
if ($w == 0) {
$w = $this->w - $this->rMargin - $this->x;
}
$wmax = ($w-2 * $this->cMargin) * 1000 / $this->FontSize;
$s = str_replace("\r", '', $txt);
- $nb = $pmaString->strlen($s);
+ $nb = /*overload*/mb_strlen($s);
if ($nb > 0 and $s[$nb-1] == "\n") {
$nb--;
}
@@ -376,7 +373,7 @@ class PMA_Schema_PDF extends PMA_PDF
if ($c == ' ') {
$sep = $i;
}
- $l += isset($cw[$pmaString->ord($c)])?$cw[$pmaString->ord($c)]:0 ;
+ $l += isset($cw[/*overload*/mb_ord($c)])?$cw[/*overload*/mb_ord($c)]:0 ;
if ($l > $wmax) {
if ($sep == -1) {
if ($i == $j) {