Index: trunk/phase3/includes/RecentChange.php |
— | — | @@ -119,6 +119,8 @@ |
120 | 120 | public function &getTitle() { |
121 | 121 | if( $this->mTitle === false ) { |
122 | 122 | $this->mTitle = Title::makeTitle( $this->mAttribs['rc_namespace'], $this->mAttribs['rc_title'] ); |
| 123 | + # Make sure the correct page ID is process cached |
| 124 | + $this->mTitle->resetArticleID( $this->mAttribs['rc_cur_id'] ); |
123 | 125 | } |
124 | 126 | return $this->mTitle; |
125 | 127 | } |
— | — | @@ -158,7 +160,7 @@ |
159 | 161 | |
160 | 162 | ## If we are using foreign keys, an entry of 0 for the page_id will fail, so use NULL |
161 | 163 | if( $dbw->cascadingDeletes() and $this->mAttribs['rc_cur_id']==0 ) { |
162 | | - unset ( $this->mAttribs['rc_cur_id'] ); |
| 164 | + unset( $this->mAttribs['rc_cur_id'] ); |
163 | 165 | } |
164 | 166 | |
165 | 167 | # Insert new row |