r110250 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r110249‎ | r110250 | r110251 >
Date:18:53, 29 January 2012
Author:reedy
Status:ok
Tags:
Comment:
Modified paths:
  • /branches/wmf/1.18wmf1/extensions/SiteMatrix (modified) (history)
  • /branches/wmf/1.18wmf1/extensions/SiteMatrix/SiteMatrix_body.php (modified) (history)

Diff [purge]

Index: branches/wmf/1.18wmf1/extensions/SiteMatrix/SiteMatrix_body.php
@@ -145,7 +145,7 @@
146146 * @return string
147147 */
148148 public function getDBName( $minor, $major ) {
149 - return $minor . $major;
 149+ return str_replace( '-', '_', $minor ) . $major;
150150 }
151151
152152 /**
@@ -172,11 +172,13 @@
173173 // not very reliable.
174174 global $wgConf;
175175
176 - if( $wgConf->get( 'wgReadOnly', $dbname, $major, array( 'site' => $major, 'lang' => $minor ) ) )
 176+ if( $wgConf->get( 'wgReadOnly', $dbname, $major, array( 'site' => $major, 'lang' => $minor ) ) ) {
177177 return true;
 178+ }
178179 $readOnlyFile = $wgConf->get( 'wgReadOnlyFile', $dbname, $major, array( 'site' => $major, 'lang' => $minor ) );
179 - if( $readOnlyFile && file_exists( $readOnlyFile ) )
 180+ if( $readOnlyFile && file_exists( $readOnlyFile ) ) {
180181 return true;
 182+ }
181183 return false;
182184 }
183185
Property changes on: branches/wmf/1.18wmf1/extensions/SiteMatrix
___________________________________________________________________
Modified: svn:mergeinfo
184186 Merged /trunk/extensions/SiteMatrix:r110249

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r110249Bug 34017 - SiteMatrix shows incorrect dbname for wikis containing dashes (- ...reedy18:48, 29 January 2012

Status & tagging log