Index: trunk/phase3/includes/Article.php |
— | — | @@ -2594,11 +2594,12 @@ |
2595 | 2595 | * @private |
2596 | 2596 | */ |
2597 | 2597 | function viewUpdates() { |
2598 | | - global $wgDeferredUpdateList; |
| 2598 | + global $wgDeferredUpdateList, $wgUser; |
2599 | 2599 | |
2600 | 2600 | if ( 0 != $this->getID() ) { |
| 2601 | + # Don't update page view counters on views from bot users (bug 14044) |
2601 | 2602 | global $wgDisableCounters; |
2602 | | - if( !$wgDisableCounters ) { |
| 2603 | + if( !$wgDisableCounters && !$wgUser->isAllowed( 'bot' ) ) { |
2603 | 2604 | Article::incViewCount( $this->getID() ); |
2604 | 2605 | $u = new SiteStatsUpdate( 1, 0, 0 ); |
2605 | 2606 | array_push( $wgDeferredUpdateList, $u ); |
— | — | @@ -2606,7 +2607,6 @@ |
2607 | 2608 | } |
2608 | 2609 | |
2609 | 2610 | # Update newtalk / watchlist notification status |
2610 | | - global $wgUser; |
2611 | 2611 | $wgUser->clearNotification( $this->mTitle ); |
2612 | 2612 | } |
2613 | 2613 | |
Index: trunk/phase3/RELEASE-NOTES |
— | — | @@ -260,8 +260,8 @@ |
261 | 261 | * (bug 13982) Disable ccmeonemails preference when user-to-user mails disabled |
262 | 262 | * (bug 13615) Update case mappings and normalization to Unicode 5.1.0 |
263 | 263 | Note that case mappings will only be used if mbstring extension is not present. |
| 264 | +* (bug 14044) Don't increment page view counters on views from bot users |
264 | 265 | |
265 | | - |
266 | 266 | === API changes in 1.13 === |
267 | 267 | |
268 | 268 | * Fixing main page display in meta=siteinfo |