r85541 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r85540‎ | r85541 | r85542 >
Date:14:47, 6 April 2011
Author:krinkle
Status:deferred
Tags:
Comment:
add domaininfo-path
Modified paths:
  • /trunk/tools/ToolserverI18N/TsIntuition.php (modified) (history)

Diff [purge]

Index: trunk/tools/ToolserverI18N/TsIntuition.php
@@ -658,13 +658,10 @@
659659 }
660660
661661 // Was there a url defined in the textdomain file ?
662 - if ( !isset( $data['url'] ) ) {
663 - $url = null;
664 - } else {
665 - $url = "http://toolserver.org/{$data['url']}";
666 - }
 662+ $fullurl = isset( $data['url'] ) ? "http://toolserver.org/{$data['url']}" : null;
 663+ $path = isset( $data['url'] ) ? $data['url'] : null;
667664
668 - $this->loadedTextdomains[$domain] = array( 'url' => $url );
 665+ $this->loadedTextdomains[$domain] = array( 'url' => $fullurl, 'path' => $path );
669666
670667
671668 return true;

Status & tagging log