http://www.mediawiki.org/wiki/Special:Code/MediaWiki/74028
Revision: 74028
Author: nikerabbit
Date: 2010-09-30 17:26:30 +0000 (Thu, 30 Sep 2010)
Log Message:
-----------
Prevent fatal errors with error reporting
Modified Paths:
--------------
trunk/extensions/Translate/TranslateTasks.php
Modified: trunk/extensions/Translate/TranslateTasks.php
===================================================================
--- trunk/extensions/Translate/TranslateTasks.php 2010-09-30 17:13:52 UTC
(rev 74027)
+++ trunk/extensions/Translate/TranslateTasks.php 2010-09-30 17:26:30 UTC
(rev 74028)
@@ -371,9 +371,13 @@
}
public function output() {
- if ( $this->group instanceof FileBasedMessageGroup ) {
+ if ( $this->group instanceof MessageGroupBase ) {
$ffs = $this->group->getFFS();
- $data = $ffs->writeIntoVariable( $this->collection );
+ if ( !$ffs ) {
+ $data = 'Not supported';
+ } else {
+ $data = $ffs->writeIntoVariable(
$this->collection );
+ }
} else {
$writer = $this->group->getWriter();
$data = $writer->webExport( $this->collection );
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs