| @@ 3086-3091 (lines=6) @@ | ||
| 3083 | [ 'ar_namespace' => $this->getNamespace(), 'ar_title' => $this->getDBkey() ], |
|
| 3084 | __METHOD__ |
|
| 3085 | ); |
|
| 3086 | if ( $this->getNamespace() == NS_FILE ) { |
|
| 3087 | $n += $dbr->selectField( 'filearchive', 'COUNT(*)', |
|
| 3088 | [ 'fa_name' => $this->getDBkey() ], |
|
| 3089 | __METHOD__ |
|
| 3090 | ); |
|
| 3091 | } |
|
| 3092 | } |
|
| 3093 | return (int)$n; |
|
| 3094 | } |
|
| @@ 3110-3115 (lines=6) @@ | ||
| 3107 | [ 'ar_namespace' => $this->getNamespace(), 'ar_title' => $this->getDBkey() ], |
|
| 3108 | __METHOD__ |
|
| 3109 | ); |
|
| 3110 | if ( !$deleted && $this->getNamespace() == NS_FILE ) { |
|
| 3111 | $deleted = (bool)$dbr->selectField( 'filearchive', '1', |
|
| 3112 | [ 'fa_name' => $this->getDBkey() ], |
|
| 3113 | __METHOD__ |
|
| 3114 | ); |
|
| 3115 | } |
|
| 3116 | return $deleted; |
|
| 3117 | } |
|
| 3118 | ||