Index: trunk/extensions/Translate/FFS.php |
— | — | @@ -89,7 +89,11 @@ |
90 | 90 | public function setWritePath( $writePath ) { $this->writePath = $writePath; } |
91 | 91 | public function getWritePath() { return $this->writePath; } |
92 | 92 | |
93 | | - public function exists( $code ) { |
| 93 | + public function exists( $code = false ) { |
| 94 | + if ( $code === false ) { |
| 95 | + $code = $this->group->getSourceLanguage(); |
| 96 | + } |
| 97 | + |
94 | 98 | $filename = $this->group->getSourceFilePath( $code ); |
95 | 99 | if ( $filename === null ) { |
96 | 100 | return false; |