* (bug 16852) padleft and padright now accept multiletter pad characters
=== Bug fixes in 1.15 ===
-* Fixing the caching issue by using -{T|xxx}- syntax (only applies on wiki with LanguageConverter class)
-* Improving the efficiency by using -{A|xxx}- syntax (only applies on wiki with LanguageConverter class)
+* Fixing the caching issue by using -{T|xxx}- syntax (only applies on wiki with
+ LanguageConverter class)
+* Improving the efficiency by using -{A|xxx}- syntax (only applies on wiki with
+ LanguageConverter class)
* (bug 16968) Special:Upload no longer throws useless warnings.
* (bug 15470) Special:Upload no longer force-capitalizes titles
-* (bug 17000) Special:RevisionDelete now checks if the database is locked before trying to delete the edit.
+* (bug 17000) Special:RevisionDelete now checks if the database is locked before
+ trying to delete the edit.
* (bug 16852) padleft and padright now handle multibyte characters correctly
+* (bug 17010) maintenance/namespaceDupes.php now add the suffix recursively if
+ the destination page exists
== API changes in 1.15 ==
* (bug 16798) JSON encoding errors for some characters outside the BMP
function resolveConflict( $row, $resolvable, $suffix ) {
if( !$resolvable ) {
echo "... *** old title {$row->title}\n";
- $row->title .= $suffix;
- echo "... *** new title {$row->title}\n";
- $title = Title::makeTitleSafe( $row->namespace, $row->title );
- if ( ! $title ) {
- echo "... !!! invalid title\n";
- return false;
+ while( true ) {
+ $row->title .= $suffix;
+ echo "... *** new title {$row->title}\n";
+ $title = Title::makeTitleSafe( $row->namespace, $row->title );
+ if ( ! $title ) {
+ echo "... !!! invalid title\n";
+ return false;
+ }
+ if ( $id = $title->getArticleId() ) {
+ echo "... *** page exists with ID $id ***\n";
+ } else {
+ break;
+ }
}
echo "... *** using suffixed form [[" . $title->getPrefixedText() . "]] ***\n";
}