Added a new hook to handle messages that aren't found in the Mediawiki Namespace...
authorTom Maaswinkel <thedevilonline@users.mediawiki.org>
Thu, 14 May 2009 21:38:45 +0000 (21:38 +0000)
committerTom Maaswinkel <thedevilonline@users.mediawiki.org>
Thu, 14 May 2009 21:38:45 +0000 (21:38 +0000)
includes/MessageCache.php

index 6f1f9fd..587fb81 100644 (file)
@@ -527,6 +527,8 @@ class MessageCache {
                        }
                        $message = $this->getMsgFromNamespace( $title, $langcode );
                }
+               if($message === false)
+                       wfRunHooks('MessageNotInMwNs', array(&$message,$lckey,$langcode,$isFullKey));
 
                # Try the extension array
                if ( $message === false && isset( $this->mExtensionMessages[$langcode][$lckey] ) ) {