Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F9142
35511.patch
Public
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Authored By
•
bzimport
Nov 22 2014, 12:18 AM
2014-11-22 00:18:06 (UTC+0)
Size
1 KB
Referenced Files
None
Subscribers
None
35511.patch
View Options
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
Details
Attached
Mime Type
text/x-diff
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
8650
Default Alt Text
35511.patch (1 KB)
Attached To
Mode
T37511: Add localized name of Wikipedia in result set
Attached
Detach File
Event Timeline
Log In to Comment