Index: trunk/extensions/ArticleFeedback/ArticleFeedback.hooks.php |
— | — | @@ -202,7 +202,7 @@ |
203 | 203 | ) ); |
204 | 204 | } else { |
205 | 205 | // add article_feedback_stats and article_feedback_stats_type |
206 | | - if ( !$db->tableExists( 'article_feedback_stats_type' )) { |
| 206 | + if ( !$db->tableExists( 'article_feedback_stats_types' )) { |
207 | 207 | $updater->addExtensionUpdate( array( |
208 | 208 | 'addTable', |
209 | 209 | 'article_feedback_stats_types', |
Index: trunk/extensions/ArticleFeedback/populateAFStatistics.php |
— | — | @@ -186,6 +186,9 @@ |
187 | 187 | if ( !$stats_type_id ) { |
188 | 188 | $stats_type_id = $this->addStatType( 'problems' ); |
189 | 189 | } |
| 190 | + |
| 191 | + $rows = array(); |
| 192 | + $cur_ts = $this->dbw->timestamp(); |
190 | 193 | foreach( $problems as $page_id ) { |
191 | 194 | $page = $this->pages->getPage( $page_id ); |
192 | 195 | $rows[] = array( |
— | — | @@ -539,7 +542,7 @@ |
540 | 543 | if ( !isset( $this->problematic )) { |
541 | 544 | $this->determineProblematicStatus(); |
542 | 545 | } |
543 | | - return $this->probematic; |
| 546 | + return $this->problematic; |
544 | 547 | } |
545 | 548 | |
546 | 549 | /** |