Mercurial > hg > fapweb
diff faptool.php @ 1024:2a96426159f1
Fix configuration file checking.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Fri, 06 Nov 2015 21:41:27 +0200 |
parents | 22b6442d5cb3 |
children | 37901bdbc545 |
line wrap: on
line diff
--- a/faptool.php Fri Nov 06 21:34:58 2015 +0200 +++ b/faptool.php Fri Nov 06 21:41:27 2015 +0200 @@ -5,7 +5,7 @@ // Special entry/preview/etc backend management commandline utility // (C) Copyright 2012-2015 Tecnic Software productions (TNSP) // -if (!file_exists("mconfig.inc.php")) +if (!file_exists(realpath(dirname(__FILE__))."/mconfig.inc.php")) { die( "ERROR: Missing site configuration file. Please copy ".