$wgHooks: add closure docs & admonition to register handlers early
authorOri Livneh <ori@wikimedia.org>
Sun, 28 Jul 2013 08:22:51 +0000 (01:22 -0700)
committerNiklas Laxström <niklas.laxstrom@gmail.com>
Tue, 20 Aug 2013 09:46:06 +0000 (09:46 +0000)
commitc7b8bc69e49b40797f7cda469699dcf47740dba5
tree4cb295af7593f23ff825df4346729f3b3f065b5d
parente1be135e6c2bf9bc73ff9a4fa0820b3167e8919a
$wgHooks: add closure docs & admonition to register handlers early

This patch takes Tim's advice to amend the doc block for $wgHooks with an
admonition to register hook handlers early. (This was after it was determined
that late registration of a CanonicalNamespace handler was responsible for bug
45031). Since I was already here, I also documented the use of closures with
$wgHooks, fulfilling a @TODO.

Change-Id: Id16148dbfbcc89e0365860e078e089ae541ba08f
includes/DefaultSettings.php