https://www.mediawiki.org/wiki/Special:Code/MediaWiki/113240

Revision: 113240
Author:   nikerabbit
Date:     2012-03-07 16:00:59 +0000 (Wed, 07 Mar 2012)
Log Message:
-----------
Calling the wrong group parameter broke gettext comments when reviewing recent 
translations

Modified Paths:
--------------
    trunk/extensions/Translate/utils/TranslationHelpers.php

Modified: trunk/extensions/Translate/utils/TranslationHelpers.php
===================================================================
--- trunk/extensions/Translate/utils/TranslationHelpers.php     2012-03-07 
15:58:14 UTC (rev 113239)
+++ trunk/extensions/Translate/utils/TranslationHelpers.php     2012-03-07 
16:00:59 UTC (rev 113240)
@@ -824,10 +824,10 @@
                if ( $ffs instanceof GettextFFS ) {
                        global $wgContLang;
                        $mykey = $wgContLang->lcfirst( $this->handle->getKey() 
);
-                       $data = $ffs->read( $this->group->getSourceLanguage() );
+                       $data = $ffs->read( $group->getSourceLanguage() );
                        $help = $data['TEMPLATE'][$mykey]['comments'];
                        // Do not display an empty comment. That's no help and 
takes up unnecessary space.
-                       $conf = $this->group->getConfiguration();
+                       $conf = $group->getConfiguration();
                        if ( isset( $conf['BASIC']['codeBrowser'] ) ) {
                                $out = '';
                                $pattern = $conf['BASIC']['codeBrowser'];


_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to