From: Brion Vibber Date: Tue, 14 Feb 2006 21:24:48 +0000 (+0000) Subject: * Unknown log types no longer throw notices everywhere in RecentChanges X-Git-Tag: 1.6.0~337 X-Git-Url: http://git.cyclocoop.org/%28?a=commitdiff_plain;h=bb7fd21511319391f8e5ba169cd2803edd9b5358;p=lhc%2Fweb%2Fwiklou.git * Unknown log types no longer throw notices everywhere in RecentChanges This has been driving me nuts when disabling extensions with custom log types. --- diff --git a/RELEASE-NOTES b/RELEASE-NOTES index c98fd12161..8f9e6f85ba 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -613,6 +613,7 @@ fully support the editing toolbar, but was found to be too confusing. * Allow cookies to be shared between multiple wikis with a shared user database * Blocking some Unicode whitespace characters in usernames. Should check if some or all should be blocked from all page titles. +* Unknown log types no longer throw notices everywhere in RecentChanges === Caveats === diff --git a/includes/LogPage.php b/includes/LogPage.php index 825e703c46..c44991cc2d 100644 --- a/includes/LogPage.php +++ b/includes/LogPage.php @@ -120,7 +120,12 @@ class LogPage { ); wfRunHooks( 'LogPageLogName', array( &$typeText ) ); - return str_replace( '_', ' ', wfMsg( $typeText[$type] ) ); + if( isset( $typeText[$type] ) ) { + return str_replace( '_', ' ', wfMsg( $typeText[$type] ) ); + } else { + // Bogus log types? Perhaps an extension was removed. + return $type; + } } /**