Index: trunk/extensions/Translate/tag/SpecialPageTranslation.php |
— | — | @@ -88,11 +88,13 @@ |
89 | 89 | |
90 | 90 | if ( $action === 'encourage' ) { |
91 | 91 | $dbw->delete( $table, $row, __METHOD__ ); |
92 | | - $logger->addEntry( 'encourage', $page->getTitle(), null, array( serialize( $params ) ) ); |
| 92 | + // @todo Check if page is currently actually discouraged to prevent duplicate log entries. |
| 93 | + $logger->addEntry( 'encourage', $title, null, array( serialize( $params ) ) ); |
93 | 94 | } else { |
94 | 95 | $index = array( 'tgr_group', 'tgr_lang' ); |
95 | 96 | $dbw->replace( $table, array( $index ), $row, __METHOD__ ); |
96 | | - $logger->addEntry( 'discourage', $page->getTitle(), null, array( serialize( $params ) ) ); |
| 97 | + // @todo Check if page is currently actually discouraged to prevent duplicate log entries. |
| 98 | + $logger->addEntry( 'discourage', $title, null, array( serialize( $params ) ) ); |
97 | 99 | } |
98 | 100 | |
99 | 101 | $this->listPages(); |