r91798 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r91797‎ | r91798 | r91799 >
Date:18:45, 9 July 2011
Author:nikerabbit
Status:deferred
Tags:
Comment:
Follow-up r91796. Default value is needed.
Modified paths:
  • /trunk/extensions/Translate/FFS.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Translate/FFS.php
@@ -89,7 +89,11 @@
9090 public function setWritePath( $writePath ) { $this->writePath = $writePath; }
9191 public function getWritePath() { return $this->writePath; }
9292
93 - public function exists( $code ) {
 93+ public function exists( $code = false ) {
 94+ if ( $code === false ) {
 95+ $code = $this->group->getSourceLanguage();
 96+ }
 97+
9498 $filename = $this->group->getSourceFilePath( $code );
9599 if ( $filename === null ) {
96100 return false;

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r91796Implement per-group default source language. Based on patch by Harald Stowasser....nikerabbit18:29, 9 July 2011

Status & tagging log