]> git.mjollnir.org Git - s9y.git/commitdiff
fix paths for people
authorgarvinhicking <garvinhicking>
Tue, 3 May 2005 07:39:06 +0000 (07:39 +0000)
committergarvinhicking <garvinhicking>
Tue, 3 May 2005 07:39:06 +0000 (07:39 +0000)
serendipity_config.inc.php

index 9403951e077959075f285cef98734202c8dfaead..5049241e4ebdf5bf56fae452eff12ede4feaa9ca 100644 (file)
@@ -221,6 +221,12 @@ if (isset($_SESSION['serendipityAuthorid'])) {
     serendipity_load_configuration($_SESSION['serendipityAuthorid']);
 }
 
+// Try to fix some path settings. It seems common users have this setting wrong
+// when s9y is installed into the root directory, especially 0.7.1 upgrade users.
+if (empty($serendipity['serendipityHTTPPath'])) {
+    $serendipity['serendipityHTTPPath'] = '/';
+}
+
 /*
  *   Load main language file again, because now we have the preferred language
  */