edit/page: git directory relative to site root
authorMischa POSLAWSKY <perl@shiar.org>
Thu, 7 Nov 2019 08:36:31 +0000 (09:36 +0100)
committerMischa POSLAWSKY <perl@shiar.org>
Sun, 10 Jan 2021 05:02:36 +0000 (06:02 +0100)
No longer a subdirectory in Lijtweg since commit v2.6-134-g7b106a3076
(2018-09-21) [move www subdirectory to root].

edit/page/index.php

index 6c123af5216dfab1c5ace8441b7a38afba895a76..d506e8f3a20e252c9f914f36ad5c0f11f813397b 100644 (file)
@@ -71,7 +71,7 @@ if (!file_exists(dirname($filename)) and !mkdir(dirname($filename), 0777, TRUE))
 if (!file_put_contents($filename, $upload))
        abort("fout bij schrijven van $filename", '500 save error');
 
-if (is_writable('../.git')) {
+if (is_writable('.git')) {
        $gitmsg = preg_replace('/\.html$/', '', $filename).": edit from {$_SERVER['REMOTE_ADDR']}";
        $gitcmd = 'git';
        $gitcmd .= ' -c user.name='.escapeshellarg($User->name ?: $User->login);