includes/api/ApiQueryDeletedRevisions.php 1 location
|
@@ 66-68 (lines=3) @@
|
| 63 |
|
|
| 64 |
|
$db = $this->getDB(); |
| 65 |
|
|
| 66 |
|
if ( !is_null( $params['user'] ) && !is_null( $params['excludeuser'] ) ) { |
| 67 |
|
$this->dieUsage( 'user and excludeuser cannot be used together', 'badparams' ); |
| 68 |
|
} |
| 69 |
|
|
| 70 |
|
$this->addTables( 'archive' ); |
| 71 |
|
if ( $resultPageSet === null ) { |
includes/api/ApiQueryDeletedrevs.php 1 location
|
@@ 119-121 (lines=3) @@
|
| 116 |
|
} |
| 117 |
|
} |
| 118 |
|
|
| 119 |
|
if ( !is_null( $params['user'] ) && !is_null( $params['excludeuser'] ) ) { |
| 120 |
|
$this->dieUsage( 'user and excludeuser cannot be used together', 'badparams' ); |
| 121 |
|
} |
| 122 |
|
|
| 123 |
|
$this->addTables( 'archive' ); |
| 124 |
|
$this->addFields( [ 'ar_title', 'ar_namespace', 'ar_timestamp', 'ar_deleted', 'ar_id' ] ); |
includes/api/ApiQueryRecentChanges.php 1 location
|
@@ 242-244 (lines=3) @@
|
| 239 |
|
); |
| 240 |
|
} |
| 241 |
|
|
| 242 |
|
if ( !is_null( $params['user'] ) && !is_null( $params['excludeuser'] ) ) { |
| 243 |
|
$this->dieUsage( 'user and excludeuser cannot be used together', 'user-excludeuser' ); |
| 244 |
|
} |
| 245 |
|
|
| 246 |
|
if ( !is_null( $params['user'] ) ) { |
| 247 |
|
$this->addWhereFld( 'rc_user_text', $params['user'] ); |
includes/api/ApiQueryWatchlist.php 1 location
|
@@ 163-165 (lines=3) @@
|
| 160 |
|
} |
| 161 |
|
} |
| 162 |
|
|
| 163 |
|
if ( !is_null( $params['user'] ) && !is_null( $params['excludeuser'] ) ) { |
| 164 |
|
$this->dieUsage( 'user and excludeuser cannot be used together', 'user-excludeuser' ); |
| 165 |
|
} |
| 166 |
|
if ( !is_null( $params['user'] ) ) { |
| 167 |
|
$options['onlyByUser'] = $params['user']; |
| 168 |
|
} |