Tweaks for SiteConfiguration:
authorAlexandre Emsenhuber <ialex@users.mediawiki.org>
Mon, 25 Aug 2008 16:46:34 +0000 (16:46 +0000)
committerAlexandre Emsenhuber <ialex@users.mediawiki.org>
Mon, 25 Aug 2008 16:46:34 +0000 (16:46 +0000)
commit68ed90f748978d2fc941a01ca3081664da0df8e5
tree82386b03b17831f256c9c67c11eb558ac06b631e
parentccacba9f3acba87d4eddca936a0d772771dc2606
Tweaks for SiteConfiguration:
* Introduced SiteConfiguration::$siteParamsCallback, a callback function that returns an array of params to define custom parameters to replace and wiki tags so that they can be used at run time (e.g. for CentralAuth or SiteMatrix), can also override SiteConfiguration::siteFromDB(). See the documentation of that variable for further information. Backward compatibility is maintened for paramters passed to SiteConfiguration::get() and similar functions but the vaules returned by the callback function will override them.
* Added SiteConfiguration::arrayMerge() for merging arrays, written by Werdna. Warning: as array_merge(), it may change numeric keys, so don't use it for settings having namespaces index in keys.
* Removed SiteFromDB hook, deprecated by the callback function
* document a bit
docs/hooks.txt
includes/SiteConfiguration.php