From 3a3e1c5fc9526f4f8e6706a4f0ec629e86ccc708 Mon Sep 17 00:00:00 2001 From: Mike Frysinger <vapier@gentoo.org> Date: Mon, 11 Dec 2006 20:42:44 +0100 Subject: [PATCH] make setup error a little more verbose if a subdir is not setup properly, then init_paths() in inc/init.php will use the pretty name ("datadir" instead of "pages"; "olddir" instead of "attic"). attached patch simply includes the actual directory name in the output so people dont have to look it up in the source code. darcs-hash:20061211194244-5224c-2d22eeb08d770108d1d993783e95d11bef0e8855.gz --- inc/init.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/init.php b/inc/init.php index bde17e798..9d6135105 100644 --- a/inc/init.php +++ b/inc/init.php @@ -140,7 +140,7 @@ function init_paths(){ foreach($paths as $c => $p){ if(empty($conf[$c])) $conf[$c] = $conf['savedir'].'/'.$p; $conf[$c] = init_path($conf[$c]); - if(empty($conf[$c])) nice_die("The $c does not exist, isn't accessable or writable. + if(empty($conf[$c])) nice_die("The $c ('$p') does not exist, isn't accessable or writable. You should check your config and permission settings. Or maybe you want to <a href=\"install.php\">run the installer</a>?"); -- GitLab