Ignore:
Timestamp:
Jul 26, 2006, 11:00:16 PM (18 years ago)
Author:
nikrou
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/functions_url.inc.php

    r1403 r1503  
    9393 * @return string
    9494 */
    95 function make_index_URL($params = array())
     95function make_index_url($params = array())
    9696{
    9797  global $conf;
     
    105105    $url .= '?';
    106106  }
    107   $url.= make_section_in_URL($params);
     107  $url.= make_section_in_url($params);
    108108  $url = add_well_known_params_in_url($url, $params);
    109109  return $url;
     
    114114 * and removes.
    115115 *
    116  * duplicate_index_URL(array('category' => 12), array('start')) will create
     116 * duplicate_index_url(array('category' => 12), array('start')) will create
    117117 * an index URL on the current section (categories), but on a redefined
    118118 * category and without the start URL parameter.
     
    122122 * @return string
    123123 */
    124 function duplicate_index_URL($redefined = array(), $removed = array())
    125 {
    126   return make_index_URL(
     124function duplicate_index_url($redefined = array(), $removed = array())
     125{
     126  return make_index_url(
    127127    params_for_duplication($redefined, $removed)
    128128    );
     
    167167/**
    168168 * create a picture URL with current page parameters, but with redefinitions
    169  * and removes. See duplicate_index_URL.
     169 * and removes. See duplicate_index_url.
    170170 *
    171171 * @param array redefined keys
     
    173173 * @return string
    174174 */
    175 function duplicate_picture_URL($redefined = array(), $removed = array())
    176 {
    177   return make_picture_URL(
     175function duplicate_picture_url($redefined = array(), $removed = array())
     176{
     177  return make_picture_url(
    178178    params_for_duplication($redefined, $removed)
    179179    );
     
    186186 * @return string
    187187 */
    188 function make_picture_URL($params)
     188function make_picture_url($params)
    189189{
    190190  global $conf;
    191191  if (!isset($params['image_id']))
    192192  {
    193     die('make_picture_URL: image_id is a required parameter');
     193    die('make_picture_url: image_id is a required parameter');
    194194  }
    195195
     
    227227      $url .= $params['image_id'];
    228228  }
    229   $url .= make_section_in_URL($params);
     229  $url .= make_section_in_url($params);
    230230  $url = add_well_known_params_in_url($url, $params);
    231231  return $url;
     
    267267 * @return string
    268268 */
    269 function make_section_in_URL($params)
     269function make_section_in_url($params)
    270270{
    271271  global $conf;
     
    324324      if (!isset($params['tags']) or count($params['tags']) == 0)
    325325      {
    326         die('make_section_in_URL: require at least one tag');
     326        die('make_section_in_url: require at least one tag');
    327327      }
    328328
     
    357357      if (!isset($params['search']))
    358358      {
    359         die('make_section_in_URL: require a search identifier');
     359        die('make_section_in_url: require a search identifier');
    360360      }
    361361
     
    368368      if (!isset($params['list']))
    369369      {
    370         die('make_section_in_URL: require a list of items');
     370        die('make_section_in_url: require a list of items');
    371371      }
    372372
Note: See TracChangeset for help on using the changeset viewer.