Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F6586
ApiQueryLogEvents2.patch
Public
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Authored By
•
bzimport
Nov 21 2014, 11:01 PM
2014-11-21 23:01:37 (UTC+0)
Size
1 KB
Referenced Files
None
Subscribers
None
ApiQueryLogEvents2.patch
View Options
Index: includes/api/ApiQueryLogEvents.php
===================================================================
--- includes/api/ApiQueryLogEvents.php (revision 68353)
+++ includes/api/ApiQueryLogEvents.php (revision )
@@ -85,8 +85,8 @@
$this->addFieldsIf( 'page_id', $this->fld_ids );
$this->addFieldsIf( 'log_user', $this->fld_user );
$this->addFieldsIf( 'user_name', $this->fld_user );
- $this->addFieldsIf( 'log_namespace', $this->fld_title );
- $this->addFieldsIf( 'log_title', $this->fld_title );
+ $this->addFieldsIf( 'log_namespace', $this->fld_title || $this->fld_parsedcomment );
+ $this->addFieldsIf( 'log_title', $this->fld_title || $this->fld_parsedcomment );
$this->addFieldsIf( 'log_comment', $this->fld_comment || $this->fld_parsedcomment );
$this->addFieldsIf( 'log_params', $this->fld_details );
@@ -231,7 +231,10 @@
$vals['pageid'] = intval( $row->page_id );
}
+ if( $this->fld_title || $this->fld_parsedcomment )
+ {
- $title = Title::makeTitle( $row->log_namespace, $row->log_title );
+ $title = Title::makeTitle( $row->log_namespace, $row->log_title );
+ }
if ( $this->fld_title ) {
if ( LogEventsList::isDeleted( $row, LogPage::DELETED_ACTION ) ) {
File Metadata
Details
Attached
Mime Type
text/x-diff
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
6126
Default Alt Text
ApiQueryLogEvents2.patch (1 KB)
Attached To
Mode
T26089: Logevents causes PHP Notice if leprop=title isn't supplied
Attached
Detach File
Event Timeline
Log In to Comment