Index: trunk/extensions/NumberOfWikis/NumberOfWikis.php |
— | — | @@ -4,8 +4,8 @@ |
5 | 5 | * |
6 | 6 | * @file |
7 | 7 | * @ingroup Extensions |
8 | | - * @version 0.1 |
9 | | - * @date November 6, 2010 |
| 8 | + * @version 0.2 |
| 9 | + * @date March 3, 2011 |
10 | 10 | * @author Jack Phoenix <jack@shoutwiki.com> |
11 | 11 | * @license http://en.wikipedia.org/wiki/Public_domain Public domain |
12 | 12 | */ |
— | — | @@ -17,7 +17,7 @@ |
18 | 18 | // Extension credits that will show up on Special:Version |
19 | 19 | $wgExtensionCredits['variable'][] = array( |
20 | 20 | 'name' => 'Number of wikis', |
21 | | - 'version' => '0.1', |
| 21 | + 'version' => '0.2', |
22 | 22 | 'author' => 'Jack Phoenix', |
23 | 23 | 'description' => 'Adds <nowiki>{{NUMBEROFWIKIS}}</nowiki> magic word to show the number of wikis on ShoutWiki', |
24 | 24 | ); |
— | — | @@ -57,7 +57,7 @@ |
58 | 58 | $res = $dbr->select( |
59 | 59 | 'wiki_list', |
60 | 60 | 'COUNT(*) AS count', |
61 | | - array(), |
| 61 | + array( 'wl_deleted' => 0 ), // ignore deleted wikis as per Jedimca0 |
62 | 62 | __METHOD__ |
63 | 63 | ); |
64 | 64 | wfDebugLog( 'NumberOfWikis', 'Got the amount of wikis from DB' ); |