]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - index.php
Small bugfix to installer fixing fancy URL detection.
[quix0rs-gnu-social.git] / index.php
index 0c69e226f759845d159d68f271c37f9c38c93b4a..c2972ec5fe0b7c5da12277bf40a78340e8d59702 100644 (file)
--- a/index.php
+++ b/index.php
@@ -63,6 +63,10 @@ function handleError($error)
 
 function main()
 {
+    // quick check for fancy URL auto-detection support in installer.
+    if (isset($_SERVER['REDIRECT_URL']) && ((dirname($_SERVER['REQUEST_URI']) . '/check-fancy') === $_SERVER['REDIRECT_URL'])) {
+        die("Fancy URL support detection succeeded. We suggest you enable this to get fancy (pretty) URLs.");
+    }
     global $user, $action, $config;
 
     if (!_have_config()) {