Skip to content

Commit

Permalink
Merge pull request #22446 from eileenmcnaughton/php4
Browse files Browse the repository at this point in the history
Remove call to php 4 function
  • Loading branch information
colemanw authored Jan 10, 2022
2 parents b2d2768 + b922bf9 commit 9fbb5d0
Showing 1 changed file with 1 addition and 14 deletions.
15 changes: 1 addition & 14 deletions CRM/Contact/Form/Task/Label.php
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,6 @@ public function postProcess($params = NULL) {

if (isset($fv['merge_same_address'])) {
CRM_Core_BAO_Address::mergeSameAddress($rows);
$individualFormat = TRUE;
}

// format the addresses according to CIVICRM_ADDRESS_FORMAT (CRM-1327)
Expand All @@ -316,18 +315,6 @@ public function postProcess($params = NULL) {
}
$row['id'] = $id;
$formatted = CRM_Utils_Address::format($row, 'mailing_format', FALSE, TRUE, $tokenFields);

// CRM-2211: UFPDF doesn't have bidi support; use the PECL fribidi package to fix it.
// On Ubuntu (possibly Debian?) be aware of http://pecl.php.net/bugs/bug.php?id=12366
// Due to FriBidi peculiarities, this can't be called on
// a multi-line string, hence the explode+implode approach.
if (function_exists('fribidi_log2vis')) {
$lines = explode("\n", $formatted);
foreach ($lines as $i => $line) {
$lines[$i] = fribidi_log2vis($line, FRIBIDI_AUTO, FRIBIDI_CHARSET_UTF8);
}
$formatted = implode("\n", $lines);
}
$rows[$id] = [$formatted];
}

Expand All @@ -336,7 +323,7 @@ public function postProcess($params = NULL) {
}

//call function to create labels
self::createLabel($rows, $fv['label_name']);
$this->createLabel($rows, $fv['label_name']);
CRM_Utils_System::civiExit();
}

Expand Down

0 comments on commit 9fbb5d0

Please sign in to comment.