Changed pass-by-reference to pass by value. Hopefully PHP uses pass by
authorfidian <fidian@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Fri, 7 Sep 2001 21:27:45 +0000 (21:27 +0000)
committerfidian <fidian@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Fri, 7 Sep 2001 21:27:45 +0000 (21:27 +0000)
reference internally instead of me specifying it explicitly.

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@1491 7612ce4b-ef26-0410-bec9-ea0150e637f0

functions/gettext.php

index 852f4c3..80f3c63 100644 (file)
       $oldStr = '';
       $newPercent = 0;
       foreach ($gettext_php_translateStrings as $k => $v) {
-         similar_text($str, $k, &$newPercent);
+         similar_text($str, $k, $newPercent);
          if ($newPercent > $oldPercent) {
             $oldStr = $v;
             $oldPercent = $newPercent;