Index: trunk/extensions/LiquidThreads/classes/View.php |
— | — | @@ -170,11 +170,12 @@ |
171 | 171 | $changed_thread = $revision->getChangeObject(); |
172 | 172 | $curr_rev_id = $changed_thread->rootRevision(); |
173 | 173 | $curr_rev = Revision::newFromId( $curr_rev_id ); |
174 | | - if ( !$curr_rev ) { |
175 | | - throw new MWException( "Undefined revision in diffQuery" ); |
| 174 | + |
| 175 | + $oldid = ''; |
| 176 | + if ( $curr_rev ) { |
| 177 | + $prev_rev = $curr_rev->getPrevious(); |
| 178 | + $oldid = $prev_rev ? $prev_rev->getId() : ''; |
176 | 179 | } |
177 | | - $prev_rev = $curr_rev->getPrevious(); |
178 | | - $oldid = $prev_rev ? $prev_rev->getId() : ""; |
179 | 180 | |
180 | 181 | $query = array( |
181 | 182 | 'lqt_method' => 'diff', |