Page MenuHomePhabricator

35511.patch

Authored By
bzimport
Nov 22 2014, 12:18 AM
Size
1 KB
Referenced Files
None
Subscribers
None

35511.patch

Index: SiteMatrix_body.php
===================================================================
--- SiteMatrix_body.php (revision 114481)
+++ SiteMatrix_body.php (working copy)
@@ -155,6 +155,17 @@
* @param $major string
* @return string
*/
+ public function getSitename( $minor, $major ) {
+ global $wgConf;
+ $dbname = $this->getDBName( $minor, $major );
+ return $wgConf->get( 'wgServer', $dbname );
+ }
+
+ /**
+ * @param $minor string
+ * @param $major string
+ * @return string
+ */
public function getDBName( $minor, $major ) {
return str_replace( '-', '_', $minor ) . $major;
}
Index: SiteMatrixApi.php
===================================================================
--- SiteMatrixApi.php (revision 114481)
+++ SiteMatrixApi.php (working copy)
@@ -60,6 +60,7 @@
'url' => $url,
'dbname' => $matrix->getDBName( $lang, $site ),
'code' => $site,
+ 'sitename' => $matrix->getSitename( $lang, $site ),
);
if ( $matrix->isClosed( $lang, $site ) ) {
$site_out['closed'] = '';

File Metadata

Mime Type
text/x-diff
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
8650
Default Alt Text
35511.patch (1 KB)

Event Timeline