Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=homepage-ng.git;a=commitdiff;h=a7ee2ecdd1437edc7f88e094e184b20b76be6d5c

commit a7ee2ecdd1437edc7f88e094e184b20b76be6d5c
Author: PacMiam <[email protected]>
Date:   Fri Apr 4 11:03:47 2014 +0200

* Restore old fwng_root for www.frugalware.org

diff --git a/frugalware/lib/config.inc.php b/frugalware/lib/config.inc.php
index 6bdcb0a..1317956 100644
--- a/frugalware/lib/config.inc.php
+++ b/frugalware/lib/config.inc.php
@@ -17,15 +17,15 @@ $check_www = explode(".", $serverName);
// frugalware.org
if ($check_www[0] != "www")
// Check if https is available
-    $http_mode = ($_SERVER['HTTPS'] == "on" ? 'https:' : 'http:');
+    $http_mode = ($_SERVER['HTTPS'] == "on" ? 'https' : 'http');

// www.frugalware.org
else
// This server name is special because it can cause a mixed content error
// We can't check if https is available, so we use relative path
-    $http_mode = "";
+    $http_mode = "https";

-$fwng_root = $http_mode . "//" . $serverName . "/";
+$fwng_root = $http_mode . "://" . $serverName . "/";

$adodb_path = "/usr/share/php";
$trans_path="/home/ftp/pub/other/translations/";
_______________________________________________
Frugalware-git mailing list
[email protected]
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to