Index: trunk/extensions/LiquidThreads/classes/Thread.php |
— | — | @@ -249,14 +249,15 @@ |
250 | 250 | |
251 | 251 | $dbw = wfGetDB( DB_MASTER ); |
252 | 252 | |
253 | | -// $dbw->delete( 'user_message_state', array( 'ums_thread' => $this->id() ), |
254 | | -// __METHOD__ ); |
| 253 | + $dbw->delete( 'user_message_state', array( 'ums_thread' => $this->id() ), |
| 254 | + __METHOD__ ); |
255 | 255 | |
256 | 256 | // Fix reply count. |
257 | 257 | $t = $this->superthread(); |
258 | 258 | while( $t ) { |
259 | 259 | $t->decrementReplyCount(); |
260 | 260 | $t->save(); |
| 261 | + $t = $t->superthread(); |
261 | 262 | } |
262 | 263 | } |
263 | 264 | |