$NetBSD: patch-aj,v 1.1.2.2 2009/05/30 21:14:02 tron Exp $

--- public_html/admin/install/index.php.orig	2009-04-18 16:55:00.000000000 +0900
+++ public_html/admin/install/index.php
@@ -1793,16 +1793,8 @@ function INST_setDefaultCharset($sitecon
 // | Main                                                                      |
 // +---------------------------------------------------------------------------+
 
-// prepare some hints about what /path/to/geeklog might be ...
-$gl_path    = strtr(__FILE__, '\\', '/'); // replace all '\' with '/'
-for ($i = 0; $i < 4; $i++) {
-    $remains = strrchr($gl_path, '/');
-    if ($remains === false) {
-        break;
-    } else {
-        $gl_path = substr($gl_path, 0, -strlen($remains));
-    }
-}
+// pkgsrc default.
+$gl_path = '@PREFIX@/@GEEKLOG_BASE@';
 
 $html_path          = str_replace('admin/install/index.php', '', str_replace('admin\install\index.php', '', str_replace('\\', '/', __FILE__)));
 $siteconfig_path    = '../../siteconfig.php';
