Fix for issue noted on CR r64876: fatal error on CSS/JS subpage display
[lhc/web/wiklou.git] / includes / SiteStats.php
index 0a7359b..2c6528e 100644 (file)
@@ -156,7 +156,6 @@ class SiteStats {
                        $row === false
                        or $row->ss_total_pages < $row->ss_good_articles
                        or $row->ss_total_edits < $row->ss_total_pages
-                       or $row->ss_users       < $row->ss_admins
                ) {
                        return false;
                }
@@ -204,7 +203,6 @@ class SiteStatsUpdate {
        }
 
        function doUpdate() {
-               $fname = 'SiteStatsUpdate::doUpdate';
                $dbw = wfGetDB( DB_MASTER );
 
                $updates = '';
@@ -221,7 +219,7 @@ class SiteStatsUpdate {
 
                        # Need a separate transaction because this a global lock
                        $dbw->begin();
-                       $dbw->query( $sql, $fname );
+                       $dbw->query( $sql, __METHOD__ );
                        $dbw->commit();
                }
        }
@@ -376,7 +374,6 @@ class SiteStatsInit {
                                                'ss_good_articles' => $this->mArticles,
                                                'ss_total_pages' => $this->mPages,
                                                'ss_users' => $this->mUsers,
-                                               'ss_admins' => SiteStats::numberingroup( 'sysop' ), // @todo make this go away
                                                'ss_images' => $this->mFiles );
                $conds = array( 'ss_row_id' => 1 );
                $views = array( 'ss_total_views' => $this->mViews );