Revert r66934 (Removing wfLoadExtensionMessages() from everything). I disagree on principle...we branch extensions for this very reason. But people want trunk extensions compatible for several versions back, meh.

This commit is contained in:
Chad Horohoe 2010-05-27 15:56:53 +00:00
Родитель 21d8a2b70b
Коммит ab32cf30f0
1 изменённых файлов: 1 добавлений и 0 удалений

Просмотреть файл

@ -182,6 +182,7 @@ function renderWidget ( &$parser, $widgetName ) {
try {
$output = $smarty->fetch( "wiki:$widgetName" );
} catch ( Exception $e ) {
wfLoadExtensionMessages( 'Widgets' );
return '<div class=\"error\">' . wfMsgExt( 'widgets-desc', array( 'parsemag' ), htmlentities($widgetName) ) . '</div>';
}