Index: trunk/extensions/Translate/TranslateTasks.php |
— | — | @@ -371,9 +371,13 @@ |
372 | 372 | } |
373 | 373 | |
374 | 374 | public function output() { |
375 | | - if ( $this->group instanceof FileBasedMessageGroup ) { |
| 375 | + if ( $this->group instanceof MessageGroupBase ) { |
376 | 376 | $ffs = $this->group->getFFS(); |
377 | | - $data = $ffs->writeIntoVariable( $this->collection ); |
| 377 | + if ( !$ffs ) { |
| 378 | + $data = 'Not supported'; |
| 379 | + } else { |
| 380 | + $data = $ffs->writeIntoVariable( $this->collection ); |
| 381 | + } |
378 | 382 | } else { |
379 | 383 | $writer = $this->group->getWriter(); |
380 | 384 | $data = $writer->webExport( $this->collection ); |