[Pmwiki-users] A silly thing
Christian Ridderström
chr
Sat Jan 17 06:01:03 CST 2004
Hi
I prefer naming my configuration file 'config.php' instead of 'local.php'.
It's trivial to implement of course:
[chr at wiki.lyx.org]$ diff -u pmwiki.php pmwiki-mod.php
--- pmwiki.php 2003-11-23 11:50:17.000000000 +0100
+++ pmwiki-mod.php 2004-01-17 13:55:02.000000000 +0100
@@ -226,6 +226,8 @@
if (file_exists('local.php')) { include('local.php'); $LocalConf=1; }
elseif (file_exists('local/local.php'))
{ include('local/local.php'); $LocalConf=1; }
+elseif (file_exists('config.php'))
+ { include('config.php'); $LocalConf=1; }
+elseif
(file_exists('local/config.php'))
+ { include('local/config.php'); $LocalConf=1; }
if ($EnableStdConfig && file_exists('scripts/stdconfig.php'))
include_once('scripts/stdconfig.php');
Patrick, would you consider adding this to pmwiki.php?
/Christian
PS. What makes this silly is that my main reason for the change is that
the filename completion always stopped on 'local'... :-)
--
Dr. Christian Ridderstr?m, +46-8-768 39 44 http://www.md.kth.se/~chr
More information about the pmwiki-users
mailing list