From: Tim Starling Date: Sat, 11 Feb 2006 11:41:46 +0000 (+0000) Subject: preload hook X-Git-Tag: 1.6.0~345 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/password.php?a=commitdiff_plain;h=01a2998b950fc6c609194e144cba9caec559d749;p=lhc%2Fweb%2Fwiklou.git preload hook --- diff --git a/includes/MessageCache.php b/includes/MessageCache.php index c6c56abd57..ea7ae52e09 100755 --- a/includes/MessageCache.php +++ b/includes/MessageCache.php @@ -428,6 +428,9 @@ class MessageCache { } } + # Call message Hooks, in case they are defined + wfRunHooks('MessagesPreLoad',array($title,&$message)); + # If it wasn't in the cache, load each message from the DB individually $revision = Revision::newFromTitle( Title::makeTitle( NS_MEDIAWIKI, $title ) ); if( $revision ) {