http://www.mediawiki.org/wiki/Special:Code/MediaWiki/74144

Revision: 74144
Author:   nikerabbit
Date:     2010-10-02 15:59:21 +0000 (Sat, 02 Oct 2010)

Log Message:
-----------
Really fix PHP warnings when trying to export AggregateMessageGroup

Modified Paths:
--------------
    trunk/extensions/Translate/TranslateTasks.php

Modified: trunk/extensions/Translate/TranslateTasks.php
===================================================================
--- trunk/extensions/Translate/TranslateTasks.php       2010-10-02 14:23:26 UTC 
(rev 74143)
+++ trunk/extensions/Translate/TranslateTasks.php       2010-10-02 15:59:21 UTC 
(rev 74144)
@@ -372,10 +372,10 @@
 
        public function output() {
                if ( $this->group instanceof MessageGroupBase ) {
-                       $ffs = $this->group->getFFS();
-                       if ( !$ffs ) {
+                       if ( !$this->group instanceof FileBasedMessageGroup ) {
                                $data = 'Not supported';
                        } else {
+                               $ffs = $this->group->getFFS();
                                $data = $ffs->writeIntoVariable( 
$this->collection );
                        }
                } else {



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

Reply via email to