Changeset 5997
- Timestamp:
- 02/03/12 12:21:38 (4 months ago)
- File:
-
- 1 edited
-
trunk/core/router.core.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/core/router.core.php
r5990 r5997 254 254 * 255 255 * @param $urlstring String to build the url from (e.g. '/news/admin/show') 256 * @param $ internal_url bool True (default) defines ampersand type as "amp"; False as "&".257 */ 258 public static function buildURL($urlstring, $ internal_url= true)256 * @param $encode bool True (default) encodes the "&" in the url (amp). 257 */ 258 public static function buildURL($urlstring, $encode = true) 259 259 { 260 260 # if urlstring is already a qualified url (http://...) … … 322 322 $url_data = Clansuite_Functions::array_unequal_combine($url_keys, $url_params_idx_array); 323 323 324 # Defaults to & for internal usage in html documents.325 $arg_separator = ($ internal_url=== true) ? '&' : '&';324 # separator defaults to "&" for internal usage in html documents 325 $arg_separator = ($encode === true) ? '&' : '&'; 326 326 327 327 $url = http_build_query($url_data, '', $arg_separator);
Note: See TracChangeset
for help on using the changeset viewer.
