function getMessage( $key )
{
global $wgAllMessagesEn;
- return $wgAllMessagesEn[$key];
+ return @$wgAllMessagesEn[$key];
}
function getAllMessages()
function getMagic( &$mw )
{
$raw =& $this->getMagicWords();
- if( !isset( $raw[$mw->mld] ) ) {
+ if( !isset( $raw[$mw->mId] ) ) {
# Fall back to English if local list is incomplete
$raw =& Language::getMagicWords();
}
function getMessage( $key )
{
global $wgAllMessagesCy;
- return $wgAllMessagesCy[$key];
+ return @$wgAllMessagesCy[$key];
}
function getAllMessages()