r22492 - htdocs/branches/beta/externals - htdocs - use php5 function http_build_query again
Geert Janssens
gjanssens at code.gnucash.org
Thu Nov 1 16:27:23 EDT 2012
Author: gjanssens
Date: 2012-11-01 16:27:23 -0400 (Thu, 01 Nov 2012)
New Revision: 22492
Trac: http://svn.gnucash.org/trac/changeset/22492
Modified:
htdocs/branches/beta/externals/header.phtml
Log:
htdocs - use php5 function http_build_query again
The server now runs php5
Modified: htdocs/branches/beta/externals/header.phtml
===================================================================
--- htdocs/branches/beta/externals/header.phtml 2012-11-01 19:59:14 UTC (rev 22491)
+++ htdocs/branches/beta/externals/header.phtml 2012-11-01 20:27:23 UTC (rev 22492)
@@ -6,31 +6,6 @@
$titleuservoice = T_("Request or vote enhancements for GnuCash");
$titlegplus = T_("GnuCash on Google +");
-function makeQueryString($params, $prefix = '', $removeFinalAmp = true) {
- $queryString = '';
- if (is_array($params)) {
- foreach ($params as $key => $value) {
- $correctKey = $prefix;
- if ('' === $prefix) {
- $correctKey .= $key;
- } else {
- $correctKey .= "[" . $key . "]";
- }
- if (!is_array($value)) {
- $queryString .= urlencode($correctKey) . "="
- . urlencode($value) . "&";
- } else {
- $queryString .= makeQueryString($value, $correctKey, false);
- }
- }
- }
- if ($removeFinalAmp === true) {
- return substr($queryString, 0, strlen($queryString) - 1);
- } else {
- return $queryString;
- }
-}
-
# This function will create a link to the given page
# reusing the get parameters that were specified
# with the option to override the language
@@ -40,7 +15,7 @@
{
$get_parms[lang] = $lang;
}
- $url_get_query = makeQueryString ($get_parms);
+ $url_get_query = http_build_query ($get_parms);
$lang_href = "$page"."?"."$url_get_query";
return $lang_href;
More information about the gnucash-changes
mailing list