Fix https url generation
authorDan Fuhry <dan@enanocms.org>
Mon, 24 Nov 2014 14:57:33 -0500
changeset 1381 6b25c6bfd246
parent 1380 0e400f946644
child 1382 78fbedb876f3
Fix https url generation
includes/functions.php
--- a/includes/functions.php	Mon Nov 24 11:40:24 2014 -0500
+++ b/includes/functions.php	Mon Nov 24 14:57:33 2014 -0500
@@ -229,7 +229,7 @@
 	else
 		$server_name = 'localhost';
 	
-	return 'http' . ( $GLOBALS['is_https'] ) . '://' . $server_name;
+	return 'http' . ( $GLOBALS['is_https'] ? 's' : '' ) . '://' . $server_name;
 }
 
 /**