Index: trunk/extensions/LiquidThreads/classes/Thread.php |
— | — | @@ -288,18 +288,21 @@ |
289 | 289 | |
290 | 290 | $new_articleNamespace = $title->getNamespace(); |
291 | 291 | $new_articleTitle = $title->getDBkey(); |
| 292 | + $new_articleID = $title->getArticleID(); |
292 | 293 | |
293 | 294 | // Update on *all* subthreads. |
294 | 295 | $dbr->update( 'thread', |
295 | 296 | array( |
296 | 297 | 'thread_article_namespace' => $new_articleNamespace, |
297 | 298 | 'thread_article_title' => $new_articleTitle, |
| 299 | + 'thread_article_id' => $new_articleID, |
298 | 300 | ), |
299 | 301 | array( 'thread_ancestor' => $this->id() ), |
300 | 302 | __METHOD__ ); |
301 | 303 | |
302 | 304 | $this->articleNamespace = $new_articleNamespace; |
303 | 305 | $this->articleTitle = $new_articleTitle; |
| 306 | + $this->articleId = $new_articleID; |
304 | 307 | $this->commitRevision( Threads::CHANGE_MOVED_TALKPAGE, null, $reason ); |
305 | 308 | |
306 | 309 | # Log the move |