r62309 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r62308‎ | r62309 | r62310 >
Date:15:35, 11 February 2010
Author:platonides
Status:ok
Tags:
Comment:
(Bug 22482) Identify private and fishbowl wikis in SiteMatrix API.
Patch by Gurch
Modified paths:
  • /trunk/extensions/SiteMatrix/SiteMatrix_body.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SiteMatrix/SiteMatrix_body.php
@@ -370,6 +370,12 @@
371371 $wiki = array();
372372 $wiki['url'] = $url;
373373 $wiki['code'] = str_replace( '_', '-', $lang ) . ( $site != 'wiki' ? $site : '' );
 374+
 375+ if( $matrix->isPrivate( $lang . $site ) )
 376+ $wiki['private'] = '';
 377+ if( $matrix->isFishbowl( $lang . $site ) )
 378+ $wiki['fishbowl'] = '';
 379+
374380 $specials[] = $wiki;
375381 }
376382

Status & tagging log