aboutsummaryrefslogtreecommitdiffstats
path: root/include/functions_url.inc.php
diff options
context:
space:
mode:
authorpatdenice <patdenice@piwigo.org>2010-12-11 19:50:05 +0000
committerpatdenice <patdenice@piwigo.org>2010-12-11 19:50:05 +0000
commit914045aad41afae100e33388e882c285c76ef321 (patch)
treec64aac06fbd358d24c5425cc46bb099f443a0dac /include/functions_url.inc.php
parente859fe07e4d8406ae95896b7fbd2d2951f4d4d5d (diff)
feature 2057: fetchRemote can send POST data
git-svn-id: http://piwigo.org/svn/trunk@8079 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'include/functions_url.inc.php')
-rw-r--r--include/functions_url.inc.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/functions_url.inc.php b/include/functions_url.inc.php
index fe4e5f5e0..d7d6dfcf3 100644
--- a/include/functions_url.inc.php
+++ b/include/functions_url.inc.php
@@ -89,7 +89,7 @@ function get_absolute_root_url($with_scheme=true)
* @param array params
* @return string
*/
-function add_url_params($url, $params)
+function add_url_params($url, $params, $arg_separator='&amp;' )
{
if ( !empty($params) )
{
@@ -100,11 +100,11 @@ function add_url_params($url, $params)
if ($is_first)
{
$is_first = false;
- $url .= ( strpos($url, '?')===false ) ? '?' :'&amp;';
+ $url .= ( strpos($url, '?')===false ) ? '?' : $arg_separator;
}
else
{
- $url .= '&amp;';
+ $url .= $arg_separator;
}
$url .= $param;
if (isset($val))