On 17/03/2008, DanTMan dan_the_man@telus.net wrote:
Erm... there's a little issue with that idea... Do remember that extensions are defined inside of LocalSettings.php, and until loaded they don't have anything set inside of $wgHooks... So a beforeConfiguration hook would absolutely never be run by anything because nothing would be able to hook into it early enough. As for the afterConfiguration, generally we use $wgExtensionFunctions (Think that was the name) for this...
You could just put the code directly into the beginning of LocalSettings.php - less tidy, but has the same effect as running a hook just before including LocalSettings.php.