[dokuwiki] [patch] make setup error a little more verbose
- From: Mike Frysinger <vapier@xxxxxxxxxx>
- To: dokuwiki@xxxxxxxxxxxxx
- Date: Fri, 8 Dec 2006 15:01:54 -0500
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").
this leaves you scratching your head going *which* directory in the
filesystem did i screw up ? attached patch simply includes the actual
directory name in the output so people dont have to look it up in the source
code.
-mike
--- old-dokuwiki/inc/init.php 2006-12-08 14:59:40.000000000 -0500
+++ new-dokuwiki/inc/init.php 2006-12-08 14:59:40.000000000 -0500
@@ -140,7 +140,7 @@
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>?");
Other related posts:
- » [dokuwiki] [patch] make setup error a little more verbose