| @@ 3099-3104 (lines=6) @@ | ||
| 3096 | [ 'ar_namespace' => $this->getNamespace(), 'ar_title' => $this->getDBkey() ], |
|
| 3097 | __METHOD__ |
|
| 3098 | ); |
|
| 3099 | if ( $this->getNamespace() == NS_FILE ) { |
|
| 3100 | $n += $dbr->selectField( 'filearchive', 'COUNT(*)', |
|
| 3101 | [ 'fa_name' => $this->getDBkey() ], |
|
| 3102 | __METHOD__ |
|
| 3103 | ); |
|
| 3104 | } |
|
| 3105 | } |
|
| 3106 | return (int)$n; |
|
| 3107 | } |
|
| @@ 3123-3128 (lines=6) @@ | ||
| 3120 | [ 'ar_namespace' => $this->getNamespace(), 'ar_title' => $this->getDBkey() ], |
|
| 3121 | __METHOD__ |
|
| 3122 | ); |
|
| 3123 | if ( !$deleted && $this->getNamespace() == NS_FILE ) { |
|
| 3124 | $deleted = (bool)$dbr->selectField( 'filearchive', '1', |
|
| 3125 | [ 'fa_name' => $this->getDBkey() ], |
|
| 3126 | __METHOD__ |
|
| 3127 | ); |
|
| 3128 | } |
|
| 3129 | return $deleted; |
|
| 3130 | } |
|
| 3131 | ||