includes/api/ApiImageRotate.php 1 location
|
@@ 49-54 (lines=6) @@
|
| 46 |
|
$r = []; |
| 47 |
|
$r['id'] = $title->getArticleID(); |
| 48 |
|
ApiQueryBase::addTitleInfo( $r, $title ); |
| 49 |
|
if ( !$title->exists() ) { |
| 50 |
|
$r['missing'] = true; |
| 51 |
|
if ( $title->isKnown() ) { |
| 52 |
|
$r['known'] = true; |
| 53 |
|
} |
| 54 |
|
} |
| 55 |
|
|
| 56 |
|
$file = wfFindFile( $title, [ 'latest' => true ] ); |
| 57 |
|
if ( !$file ) { |
includes/api/ApiSetNotificationTimestamp.php 1 location
|
@@ 159-164 (lines=6) @@
|
| 156 |
|
'ns' => intval( $ns ), |
| 157 |
|
'title' => $title->getPrefixedText(), |
| 158 |
|
]; |
| 159 |
|
if ( !$title->exists() ) { |
| 160 |
|
$r['missing'] = true; |
| 161 |
|
if ( $title->isKnown() ) { |
| 162 |
|
$r['known'] = true; |
| 163 |
|
} |
| 164 |
|
} |
| 165 |
|
if ( isset( $timestamps[$ns] ) && array_key_exists( $dbkey, $timestamps[$ns] ) ) { |
| 166 |
|
$r['notificationtimestamp'] = ''; |
| 167 |
|
if ( $timestamps[$ns][$dbkey] !== null ) { |