diff options
author | Mike Frysinger <vapier@gentoo.org> | 2006-12-11 20:42:44 +0100 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2006-12-11 20:42:44 +0100 |
commit | 3a3e1c5fc9526f4f8e6706a4f0ec629e86ccc708 (patch) | |
tree | 8fd38e51288a77a232c6c616b9decc0118b6e40a | |
parent | 50561e727b8a45773a4afbffae8f068add7ca570 (diff) | |
download | rpg-3a3e1c5fc9526f4f8e6706a4f0ec629e86ccc708.tar.gz rpg-3a3e1c5fc9526f4f8e6706a4f0ec629e86ccc708.tar.bz2 |
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
-rw-r--r-- | inc/init.php | 2 |
1 files changed, 1 insertions, 1 deletions
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>?"); |