Index: trunk/extensions/UsageStatistics/SpecialUserStats_body.php |
— | — | @@ -83,7 +83,7 @@ |
84 | 84 | $u = array(); |
85 | 85 | $sql = "SELECT rev_user_text,rev_timestamp,page_id FROM " . |
86 | 86 | $db->tableName('page') . "," . $db->tableName('revision') . |
87 | | - " WHERE rev_page=page_id"; # AND (page_id=3763 OR page_id=9517) |
| 87 | + " WHERE rev_page=page_id"; |
88 | 88 | |
89 | 89 | $res = $db->query($sql, __METHOD__); |
90 | 90 | |
— | — | @@ -114,7 +114,9 @@ |
115 | 115 | plot '-' using 1:2 t 'edits' with linesp lt 1 lw 3, '-' using 1:2 t 'pages' with linesp lt 2 lw 3 axis x1y2 |
116 | 116 | "; |
117 | 117 | $gnuplot_pdata = ''; |
118 | | - $first = true; |
| 118 | + $first = true; |
| 119 | + $e = 0; |
| 120 | + $p = 0; |
119 | 121 | foreach ($u[$user] as $d => $v) { |
120 | 122 | $date = ''; |
121 | 123 | if (preg_match('/^(\d{4})(\d{2})(\d{2})/',$d,$matches)) |
— | — | @@ -161,7 +163,9 @@ |
162 | 164 | plot '-' using 1:2 t 'edits' with linesp lt 1 lw 3, '-' using 1:2 t 'pages' with linesp lt 2 lw 3 axis x1y2 |
163 | 165 | "; |
164 | 166 | $gnuplot_pdata = ''; |
165 | | - $first = true; |
| 167 | + $first = true; |
| 168 | + $pages = 0; |
| 169 | + $edits = 0; |
166 | 170 | $totals = array(); |
167 | 171 | foreach ($dates as $d => $v) { |
168 | 172 | if ($type == 'incremental') { |
Index: trunk/extensions/UsageStatistics/SpecialUserStats.php |
— | — | @@ -13,7 +13,7 @@ |
14 | 14 | |
15 | 15 | $wgExtensionCredits['specialpage'][] = array( |
16 | 16 | 'name' => 'UserStats', |
17 | | - 'version' => 'v1.8', |
| 17 | + 'version' => 'v1.9', |
18 | 18 | 'author' => 'Paul Grinberg', |
19 | 19 | 'email' => 'gri6507 at yahoo dot com', |
20 | 20 | 'url' => 'http://www.mediawiki.org/wiki/Extension:Usage_Statistics', |