Index: trunk/phase3/CREDITS |
— | — | @@ -88,6 +88,7 @@ |
89 | 89 | * Jeremy Baron |
90 | 90 | * Jidanni |
91 | 91 | * Jimmy Xu |
| 92 | +* John Du Hart |
92 | 93 | * Karun Dambietz |
93 | 94 | * Kim Hyun-Joon |
94 | 95 | * Lee Worden |
Index: trunk/phase3/includes/api/ApiQueryLogEvents.php |
— | — | @@ -85,8 +85,8 @@ |
86 | 86 | $this->addFieldsIf( 'page_id', $this->fld_ids ); |
87 | 87 | $this->addFieldsIf( 'log_user', $this->fld_user ); |
88 | 88 | $this->addFieldsIf( 'user_name', $this->fld_user ); |
89 | | - $this->addFieldsIf( 'log_namespace', $this->fld_title ); |
90 | | - $this->addFieldsIf( 'log_title', $this->fld_title ); |
| 89 | + $this->addFieldsIf( 'log_namespace', $this->fld_title || $this->fld_parsedcomment ); |
| 90 | + $this->addFieldsIf( 'log_title', $this->fld_title || $this->fld_parsedcomment ); |
91 | 91 | $this->addFieldsIf( 'log_comment', $this->fld_comment || $this->fld_parsedcomment ); |
92 | 92 | $this->addFieldsIf( 'log_params', $this->fld_details ); |
93 | 93 | |
— | — | @@ -231,7 +231,9 @@ |
232 | 232 | $vals['pageid'] = intval( $row->page_id ); |
233 | 233 | } |
234 | 234 | |
235 | | - $title = Title::makeTitle( $row->log_namespace, $row->log_title ); |
| 235 | + if( $this->fld_title || $this->fld_parsedcomment ) { |
| 236 | + $title = Title::makeTitle( $row->log_namespace, $row->log_title ); |
| 237 | + } |
236 | 238 | |
237 | 239 | if ( $this->fld_title ) { |
238 | 240 | if ( LogEventsList::isDeleted( $row, LogPage::DELETED_ACTION ) ) { |
— | — | @@ -263,8 +265,9 @@ |
264 | 266 | $vals['userhidden'] = ''; |
265 | 267 | } else { |
266 | 268 | $vals['user'] = $row->user_name; |
267 | | - if ( !$row->log_user ) |
| 269 | + if ( !$row->log_user ) { |
268 | 270 | $vals['anon'] = ''; |
| 271 | + } |
269 | 272 | } |
270 | 273 | } |
271 | 274 | if ( $this->fld_timestamp ) { |
Index: trunk/phase3/RELEASE-NOTES |
— | — | @@ -240,6 +240,7 @@ |
241 | 241 | * (bug 24016) API: Handle parameters specified in simple string syntax |
242 | 242 | ( 'paramname' => 'defaultval' ) correctly when outputting help |
243 | 243 | * (bug 19910) Headings of the form ===+\s+ are now displayed as valid headings |
| 244 | +* (bug 24089) Logevents causes PHP Notice if leprop=title isn't supplied |
244 | 245 | |
245 | 246 | === Languages updated in 1.17 === |
246 | 247 | |