preload hook
authorTim Starling <tstarling@users.mediawiki.org>
Sat, 11 Feb 2006 11:41:46 +0000 (11:41 +0000)
committerTim Starling <tstarling@users.mediawiki.org>
Sat, 11 Feb 2006 11:41:46 +0000 (11:41 +0000)
includes/MessageCache.php

index c6c56ab..ea7ae52 100755 (executable)
@@ -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 ) {