r87821 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r87820‎ | r87821 | r87822 >
Date:14:27, 10 May 2011
Author:ashley
Status:deferred
Tags:
Comment:
NumberOfWikis: version 0.2 -- exclude deleted wikis
Modified paths:
  • /trunk/extensions/NumberOfWikis/NumberOfWikis.php (modified) (history)

Diff [purge]

Index: trunk/extensions/NumberOfWikis/NumberOfWikis.php
@@ -4,8 +4,8 @@
55 *
66 * @file
77 * @ingroup Extensions
8 - * @version 0.1
9 - * @date November 6, 2010
 8+ * @version 0.2
 9+ * @date March 3, 2011
1010 * @author Jack Phoenix <jack@shoutwiki.com>
1111 * @license http://en.wikipedia.org/wiki/Public_domain Public domain
1212 */
@@ -17,7 +17,7 @@
1818 // Extension credits that will show up on Special:Version
1919 $wgExtensionCredits['variable'][] = array(
2020 'name' => 'Number of wikis',
21 - 'version' => '0.1',
 21+ 'version' => '0.2',
2222 'author' => 'Jack Phoenix',
2323 'description' => 'Adds <nowiki>{{NUMBEROFWIKIS}}</nowiki> magic word to show the number of wikis on ShoutWiki',
2424 );
@@ -57,7 +57,7 @@
5858 $res = $dbr->select(
5959 'wiki_list',
6060 'COUNT(*) AS count',
61 - array(),
 61+ array( 'wl_deleted' => 0 ), // ignore deleted wikis as per Jedimca0
6262 __METHOD__
6363 );
6464 wfDebugLog( 'NumberOfWikis', 'Got the amount of wikis from DB' );

Status & tagging log