From 9d533a070c45e1bc9576d56097fa71c73855fc69 Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Wed, 5 Mar 2008 00:28:33 +0000 Subject: [PATCH] * (bug 13247) Prettified ISBN links --- RELEASE-NOTES | 1 + includes/Parser.php | 4 ++-- maintenance/parserTests.txt | 16 ++++++++-------- 3 files changed, 11 insertions(+), 10 deletions(-) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index b1b33d712c..7aa01ce36e 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -63,6 +63,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN maintenance/cleanupSpam.php * All skins should have the "mediawiki" class on the body element * (bug 13019) Message cache for some extensions not loaded at time of editing +* (bug 13247) Prettified ISBN links === API changes in 1.13 === diff --git a/includes/Parser.php b/includes/Parser.php index e21ee65b8d..fde3351978 100644 --- a/includes/Parser.php +++ b/includes/Parser.php @@ -1005,9 +1005,9 @@ class Parser ' ' => '', 'x' => 'X', )); - $titleObj = SpecialPage::getTitleFor( 'Booksources' ); + $titleObj = SpecialPage::getTitleFor( 'Booksources', $num ); $text = 'escapeLocalUrl() . "\" class=\"internal\">ISBN $isbn"; } else { if ( substr( $m[0], 0, 3 ) == 'RFC' ) { diff --git a/maintenance/parserTests.txt b/maintenance/parserTests.txt index 62cddc45d0..8e063ce1d1 100644 --- a/maintenance/parserTests.txt +++ b/maintenance/parserTests.txt @@ -2102,7 +2102,7 @@ Magic links: ISBN (bug 1937) !! input ISBN 0-306-40615-2 !! result -

ISBN 0-306-40615-2 +

ISBN 0-306-40615-2

!! end @@ -3108,7 +3108,7 @@ BUG 1887: A ISBN with a thumbnail !! input [[Image:foobar.jpg|thumb|ISBN 1235467890]] !! result -
+
!! end @@ -6014,7 +6014,7 @@ ISBN code coverage !! input ISBN 978-0-1234-56 789 !! result -

ISBN 978-0-1234-56 789 +

ISBN 978-0-1234-56 789

!! end @@ -6032,7 +6032,7 @@ Double ISBN !! input ISBN ISBN 1234567890 !! result -

ISBN ISBN 1234567890 +

ISBN ISBN 1234567890

!! end @@ -6341,7 +6341,7 @@ ISBN with space-delimited number !! input ISBN 92 9017 032 8 !! result -

ISBN 92 9017 032 8 +

ISBN 92 9017 032 8

!! end @@ -6366,7 +6366,7 @@ ISBN 1234567890 ISBN 12345678901 !! result

ISBN 123456789 -

ISBN 1234567890 +

ISBN 1234567890

ISBN 12345678901

!! end @@ -6379,8 +6379,8 @@ ISBN 1-234-56789-0 - 2006 ISBN 1 234 56789 0 - 2006 !! result -

ISBN 1-234-56789-0 - 2006 -

ISBN 1 234 56789 0 - 2006 +

ISBN 1-234-56789-0 - 2006 +

ISBN 1 234 56789 0 - 2006

!! end -- 2.20.1