[Fusionforge-commits] r11737 - trunk/src/common/include

Franck VILLAUME nerville at libremir.placard.fr.eu.org
Thu Dec 9 13:19:41 CET 2010


Author: nerville
Date: 2010-12-09 13:19:41 +0100 (Thu, 09 Dec 2010)
New Revision: 11737

Modified:
   trunk/src/common/include/utils.php
Log:
make path default value

Modified: trunk/src/common/include/utils.php
===================================================================
--- trunk/src/common/include/utils.php	2010-12-09 12:14:18 UTC (rev 11736)
+++ trunk/src/common/include/utils.php	2010-12-09 12:19:41 UTC (rev 11737)
@@ -1073,15 +1073,15 @@
  * @param string $path
  * @return string URL
  */
-function util_make_url ($path) {
+function util_make_url($path = '') {
 	if (forge_get_config('use_ssl')) 
-		$url = "https://" ;
+		$url = "https://";
 	else
-		$url = "http://" ;
+		$url = "http://";
 	
-	$url .= forge_get_config('web_host') ;
-	$url .= util_make_uri ($path) ;
-	return $url ;
+	$url .= forge_get_config('web_host');
+	$url .= util_make_uri($path);
+	return $url;
 }
 
 /**




More information about the Fusionforge-commits mailing list