return true;
}
+ $resolveableCount = 0;
+
$ok = true;
foreach ( $conflicts as $row ) {
$resolvable = $this->reportConflict( $row, $suffix );
$ok = $ok && $resolvable;
+
+ if ( $resolvable ) {
+ $resolveableCount++;
+ }
+
if ( $fix && ( $resolvable || $suffix != '' ) ) {
$ok = $this->resolveConflict( $row, $resolvable, $suffix ) && $ok;
}
}
+ $this->output( "{$count} conflicts. {$resolveableCount} are resolveable." );
+
return $ok;
}
$row->oldtitle,
$newTitle->getNamespace(),
$newTitle->getDBkey(),
- $newTitle->getPrefixedText() ) );
+ $newTitle->getPrefixedText() )
+ );
$id = $newTitle->getArticleID();
if ( $id ) {