Permalink
Browse files

MDL-19024 Fix a bug that stops strings from being displayed correctly…

… in the admin section when configuring the MNET services. (Thanks, Richard Mansfield.)
  • Loading branch information...
1 parent 1276ac6 commit e48675ba9826b772711706848200483587636793 @moquist moquist committed Dec 22, 2009
Showing with 3 additions and 2 deletions.
  1. +3 −2 admin/mnet/mnet_services.html
@@ -17,11 +17,12 @@
<?php
foreach($myservices as $name => $versions) {
$version = current($versions);
+ $langmodule = ($version['parent_type'] == 'mod' ? '' : ($version['parent_type'] . '_')) . $version['parent'];
?>
<tr>
<td align="left" valign="top" colspan="2">
- <h3><?php echo get_string($name.'_name', $version['parent_type'].'_'.$version['parent'] , $mnet_peer->name); ?></h3>
- <?php echo get_string($name.'_description', $version['parent_type'].'_'.$version['parent'], $mnet_peer->name); ?>
+ <h3><?php echo get_string($name.'_name', $langmodule , $mnet_peer->name); ?></h3>
+ <?php echo get_string($name.'_description', $langmodule, $mnet_peer->name); ?>
<?php
$breakstring = '';
foreach($versions as $version){

0 comments on commit e48675b

Please sign in to comment.