Skip to content

Commit

Permalink
Changed depreciated function ereg_replace() to preg_replace and adjus…
Browse files Browse the repository at this point in the history
…t its parameter accordingly.
  • Loading branch information
rasseljandavid committed Jul 26, 2011
1 parent cde25e9 commit 49c7f9c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions framework/modules/ecommerce/billingcalculators/payflowpro.php
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ function sale_transaction($method, $opts)
$nvpstr = "";
while(list($key, $value) = each($apiParams))
{
$tmpVal = urlencode(ereg_replace(',', '', $value));
$tmpVal = urlencode(preg_replace('/,/', '', $value));
$nvpstr .= $key . '[' . strlen($tmpVal) . ']=' . $tmpVal . '&';
}

Expand Down Expand Up @@ -409,7 +409,7 @@ function delayed_capture($method, $amount)
$nvpstr = "";
while(list($key, $value) = each($apiParams))
{
$tmpVal = urlencode(ereg_replace(',', '', $value));
$tmpVal = urlencode(preg_replace('/,/', '', $value));
$nvpstr .= $key . '[' . strlen($tmpVal) . ']=' . $tmpVal . '&';
}

Expand Down Expand Up @@ -530,7 +530,7 @@ function void_transaction($method)
$nvpstr = "";
while(list($key, $value) = each($apiParams))
{
$tmpVal = urlencode(ereg_replace(',', '', $value));
$tmpVal = urlencode(preg_replace('/,/', '', $value));
$nvpstr .= $key . '[' . strlen($tmpVal) . ']=' . $tmpVal . '&';
}

Expand Down Expand Up @@ -657,7 +657,7 @@ function credit_transaction($method, $amount)
$nvpstr = "";
while(list($key, $value) = each($apiParams))
{
$tmpVal = urlencode(ereg_replace(',', '', $value));
$tmpVal = urlencode(preg_replace('/,/', '', $value));
$nvpstr .= $key . '[' . strlen($tmpVal) . ']=' . $tmpVal . '&';
}

Expand Down

0 comments on commit 49c7f9c

Please sign in to comment.