[geeklog-devel] Minor suggestion for Geeklog

Vincent Furia vfuria at gmail.com
Fri Sep 24 23:32:52 EDT 2004


I agree with Tom.  At least for config.php.  I'd like to see how big
an impact in performance there would be before we implemented
something like this for languages.

-Vinny

On Sat, 25 Sep 2004 00:51:45 +0000, Tom Willett <tomw at pigstye.net> wrote:
> I would like to make a minor suggestion that would make upgrades much easier
> and perhaps could avert a lot of install problems.
> 
> Have two configuration files.  One the normal config.php we are all familiar
> with.  The person installing geeklog should never make changes to this file.
> The other configuration file would contain things that must be changed and
> only the configuration options the installer wanted/needed to change.
> 
> Then the last thing in the normal config.php would be to include the
> site.config.php file.  The changes in the site.config file would override the
> normal config.php and everything would be good.  This has several advantages.
> 
> To upgrade, normally only minor or no changes would be required to the site
> config file and the normal config.php would be replaced.  No editing required.
> 
> Most of the paths, which people change when they shouldn't, would remain
> untouched in the normal config.php.  It would remove some of the temptation
> to mess with them.
> 
> This would only require the creation of a minimal site.config.php (name it
> something like site.config.php.example to prevent its overwriting the real
> site.config.ph) and the include in the normal config.php.  Of course you need
> to place warnings in the config.php to not make any changes in this file.
> 
> The same idea will work with language files and avert the problem of
> incomplete language files.  Always read the english file and then just
> overlay it with another language file if wanted.  Quick changes to the
> english file can be made and distributed and it will not break the others.
> This would only require some simple logic changes in the includes.
> 
> A minor change that would make things more robust.
> 
> --
> Tom Willett
> tomw at pigstye.net
> 
> _______________________________________________
> geeklog-devel mailing list
> geeklog-devel at lists.geeklog.net
> http://lists.geeklog.net/listinfo/geeklog-devel
>



More information about the geeklog-devel mailing list