[Fusionforge-commits] r15773 - branches/Branch_5_1/src/common/include
Thorsten Glaser
mirabilos at fusionforge.org
Thu Jun 14 12:07:46 CEST 2012
Author: mirabilos
Date: 2012-06-14 12:07:45 +0200 (Thu, 14 Jun 2012)
New Revision: 15773
Modified:
branches/Branch_5_1/src/common/include/utils.php
Log:
util_url_prefix() was missing, apparently
Modified: branches/Branch_5_1/src/common/include/utils.php
===================================================================
--- branches/Branch_5_1/src/common/include/utils.php 2012-06-14 09:13:01 UTC (rev 15772)
+++ branches/Branch_5_1/src/common/include/utils.php 2012-06-14 10:07:45 UTC (rev 15773)
@@ -1073,6 +1073,19 @@
}
/**
+ * Return URL prefix (http:// or https://)
+ *
+ * @return string URL prefix
+ */
+function util_url_prefix() {
+ if (forge_get_config('use_ssl')) {
+ return "https://";
+ } else {
+ return "http://";
+ }
+}
+
+/**
* Construct full URL from a relative path
*
* @param string $path
More information about the Fusionforge-commits
mailing list