Index: trunk/extensions/LiquidThreads/classes/DeletionController.php |
— | — | @@ -12,7 +12,7 @@ |
13 | 13 | $threads = Threads::where( array( 'thread_root' => $id ) ); |
14 | 14 | |
15 | 15 | if ( !count( $threads ) ) { |
16 | | - wfDebugLog( __METHOD__ . ": no threads with root $id, ignoring...\n" ); |
| 16 | + wfDebugLog( 'LiquidThreads', __METHOD__ . ": no threads with root $id, ignoring...\n" ); |
17 | 17 | return true; |
18 | 18 | } |
19 | 19 | |
Index: trunk/extensions/LiquidThreads/classes/Thread.php |
— | — | @@ -790,7 +790,9 @@ |
791 | 791 | // This is an invocation guard to avoid infinite recursion when fixing a |
792 | 792 | // missing ancestor. |
793 | 793 | static $doingUpdates = false; |
794 | | - if ( $doingUpdates ) return; |
| 794 | + if ( $doingUpdates ) { |
| 795 | + return; |
| 796 | + } |
795 | 797 | $doingUpdates = true; |
796 | 798 | |
797 | 799 | // Fix missing ancestry information. |
Index: trunk/extensions/LiquidThreads/api/ApiQueryLQTThreads.php |
— | — | @@ -203,11 +203,9 @@ |
204 | 204 | $nsField = $fields['namespace']; |
205 | 205 | $tField = $fields['title']; |
206 | 206 | $title = Title::makeTitle( $row->$nsField, $row->$tField ); |
207 | | - $result = array(); |
208 | 207 | ApiQueryBase::addTitleInfo( $entry, $title, 'page' ); |
209 | 208 | } else { |
210 | 209 | // Complicated case. |
211 | | - $result = array(); |
212 | 210 | foreach ( $fields as $part => $field ) { |
213 | 211 | $entry[$name][$part] = $row->$field; |
214 | 212 | } |