r36630 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r36629‎ | r36630 | r36631 >
Date:08:22, 25 June 2008
Author:nikerabbit
Status:old
Tags:
Comment:
* One hack less
Modified paths:
  • /trunk/extensions/Translate/Translate.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Translate/Translate.php
@@ -11,7 +11,7 @@
1212 * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License 2.0 or later
1313 */
1414
15 -define( 'TRANSLATE_VERSION', '8.47' );
 15+define( 'TRANSLATE_VERSION', '8.48' );
1616
1717 $wgExtensionCredits['specialpage'][] = array(
1818 'name' => 'Translate',
@@ -37,6 +37,10 @@
3838 $wgHooks['UserToggles'][] = 'TranslatePreferences::TranslateUserToggles';
3939 $wgHooks['SpecialRecentChangesQuery'][] = 'TranslateRcFilter::translationFilter';
4040 $wgHooks['SpecialRecentChangesPanel'][] = 'TranslateRcFilter::translationFilterForm';
 41+$wgHooks['SpecialPage_initList'][] = 'wfTranslateRemoveAllmessages';
 42+function wfTranslateRemoveAllmessages( $list ) {
 43+ unset( $list['Allmessages'] ); return true;
 44+}
4145
4246 $wgAvailableRights[] = 'translate';
4347

Status & tagging log