aboutsummaryrefslogtreecommitdiffstats
path: root/include/functions_url.inc.php
diff options
context:
space:
mode:
authornikrou <nikrou@piwigo.org>2006-07-26 21:04:23 +0000
committernikrou <nikrou@piwigo.org>2006-07-26 21:04:23 +0000
commit4b1863cbef706e64161861c63570a5f0b7a3d9aa (patch)
tree31aa5535ad94ba41d488bffabdfe2a9b32c355f1 /include/functions_url.inc.php
parent5a65e6a41f72be026388a1529cff752ac906041c (diff)
svn merge -r1502:1503 (cosmetic change)
function names are case-insensitive but it's a good idea to call functions as they appear in their declaration. So all functions names that manipulate url like make_index_url() are write with lowercase git-svn-id: http://piwigo.org/svn/branches/branch-1_6@1504 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r--include/functions_url.inc.php30
1 files changed, 15 insertions, 15 deletions
diff --git a/include/functions_url.inc.php b/include/functions_url.inc.php
index 46a9c8627..7d30577fa 100644
--- a/include/functions_url.inc.php
+++ b/include/functions_url.inc.php
@@ -92,7 +92,7 @@ function add_url_params($url, $params)
* @param array
* @return string
*/
-function make_index_URL($params = array())
+function make_index_url($params = array())
{
global $conf;
$url = get_root_url().'index';
@@ -104,7 +104,7 @@ function make_index_URL($params = array())
{
$url .= '?';
}
- $url.= make_section_in_URL($params);
+ $url.= make_section_in_url($params);
$url = add_well_known_params_in_url($url, $params);
return $url;
}
@@ -113,7 +113,7 @@ function make_index_URL($params = array())
* build an index URL with current page parameters, but with redefinitions
* and removes.
*
- * duplicate_index_URL(array('category' => 12), array('start')) will create
+ * duplicate_index_url(array('category' => 12), array('start')) will create
* an index URL on the current section (categories), but on a redefined
* category and without the start URL parameter.
*
@@ -121,9 +121,9 @@ function make_index_URL($params = array())
* @param array removed keys
* @return string
*/
-function duplicate_index_URL($redefined = array(), $removed = array())
+function duplicate_index_url($redefined = array(), $removed = array())
{
- return make_index_URL(
+ return make_index_url(
params_for_duplication($redefined, $removed)
);
}
@@ -166,15 +166,15 @@ function params_for_duplication($redefined, $removed)
/**
* create a picture URL with current page parameters, but with redefinitions
- * and removes. See duplicate_index_URL.
+ * and removes. See duplicate_index_url.
*
* @param array redefined keys
* @param array removed keys
* @return string
*/
-function duplicate_picture_URL($redefined = array(), $removed = array())
+function duplicate_picture_url($redefined = array(), $removed = array())
{
- return make_picture_URL(
+ return make_picture_url(
params_for_duplication($redefined, $removed)
);
}
@@ -185,12 +185,12 @@ function duplicate_picture_URL($redefined = array(), $removed = array())
* @param array
* @return string
*/
-function make_picture_URL($params)
+function make_picture_url($params)
{
global $conf;
if (!isset($params['image_id']))
{
- die('make_picture_URL: image_id is a required parameter');
+ die('make_picture_url: image_id is a required parameter');
}
$url = get_root_url().'picture';
@@ -226,7 +226,7 @@ function make_picture_URL($params)
default:
$url .= $params['image_id'];
}
- $url .= make_section_in_URL($params);
+ $url .= make_section_in_url($params);
$url = add_well_known_params_in_url($url, $params);
return $url;
}
@@ -266,7 +266,7 @@ function add_well_known_params_in_url($url, $params)
* @param array
* @return string
*/
-function make_section_in_URL($params)
+function make_section_in_url($params)
{
global $conf;
$section_string = '';
@@ -323,7 +323,7 @@ function make_section_in_URL($params)
{
if (!isset($params['tags']) or count($params['tags']) == 0)
{
- die('make_section_in_URL: require at least one tag');
+ die('make_section_in_url: require at least one tag');
}
$section_string.= '/tags';
@@ -356,7 +356,7 @@ function make_section_in_URL($params)
{
if (!isset($params['search']))
{
- die('make_section_in_URL: require a search identifier');
+ die('make_section_in_url: require a search identifier');
}
$section_string.= '/search/'.$params['search'];
@@ -367,7 +367,7 @@ function make_section_in_URL($params)
{
if (!isset($params['list']))
{
- die('make_section_in_URL: require a list of items');
+ die('make_section_in_url: require a list of items');
}
$section_string.= '/list/'.implode(',', $params['list']);