summaryrefslogtreecommitdiff
path: root/www/geeklog/patches/patch-aj
blob: b42126172b8ba7a07316e545c6778b423efadac7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
$NetBSD: patch-aj,v 1.5 2010/08/10 16:00:42 taca Exp $

* Change for pkgsrc.

--- public_html/admin/install/index.php.orig	2010-04-25 06:56:58.000000000 +0000
+++ public_html/admin/install/index.php
@@ -918,16 +918,8 @@ function INST_defaultPluginInstall()
 // | 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          = INST_getHtmlPath();
 $siteconfig_path    = '../../siteconfig.php';