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