Index: trunk/extensions/Translate/utils/MessageGroupStats.php |
— | — | @@ -109,13 +109,16 @@ |
110 | 110 | ); |
111 | 111 | |
112 | 112 | $dbw->delete( self::TABLE, $conds, __METHOD__ ); |
| 113 | + wfDebugLog( 'messagegroupstats', "Cleared " . serialize( $conds ) ); |
113 | 114 | } |
114 | 115 | |
115 | 116 | public static function clearGroup( $id ) { |
| 117 | + wfDebugLog( 'messagegroupstats', "Cleared {$id}" ); |
116 | 118 | if ( !count( $id ) ) return; |
117 | 119 | $dbw = wfGetDB( DB_MASTER ); |
118 | 120 | $conds = array( 'tgs_group' => $id ); |
119 | 121 | $dbw->delete( self::TABLE, $conds, __METHOD__ ); |
| 122 | + wfDebugLog( 'messagegroupstats', "Cleared " . serialize( $conds ) ); |
120 | 123 | } |
121 | 124 | |
122 | 125 | public static function clearLanguage( $code ) { |
— | — | @@ -123,6 +126,7 @@ |
124 | 127 | $dbw = wfGetDB( DB_MASTER ); |
125 | 128 | $conds = array( 'tgs_lang' => $code ); |
126 | 129 | $dbw->delete( self::TABLE, $conds, __METHOD__ ); |
| 130 | + wfDebugLog( 'messagegroupstats', "Cleared " . serialize( $conds ) ); |
127 | 131 | } |
128 | 132 | |
129 | 133 | /** |
— | — | @@ -131,6 +135,7 @@ |
132 | 136 | public static function clearAll() { |
133 | 137 | $dbw = wfGetDB( DB_MASTER ); |
134 | 138 | $dbw->delete( self::TABLE, '*' ); |
| 139 | + wfDebugLog( 'messagegroupstats', "Cleared everything :(" ); |
135 | 140 | } |
136 | 141 | |
137 | 142 | protected static function extractResults( $res, $stats = array() ) { |