From 8dd2ee8057e809873e2715f17177a690c560d2d6 Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Sat, 18 Feb 2006 01:09:45 +0000 Subject: [PATCH] * Fix missing bad title check in Special:Booksources * Remove empty booksources string in fy --- RELEASE-NOTES | 2 ++ includes/SpecialBooksources.php | 16 +++++++++------- languages/MessagesFy.php | 2 -- 3 files changed, 11 insertions(+), 9 deletions(-) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 4fb35eed8b..753b4fb2bb 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -625,6 +625,8 @@ fully support the editing toolbar, but was found to be too confusing. still be operated if the text is hostile. * (bug 5013) Check for existence on "return to" links * Removed trailing whitespace on a bunch more messages. +* Fix missing bad title check in Special:Booksources +* Remove empty booksources string in fy === Caveats === diff --git a/includes/SpecialBooksources.php b/includes/SpecialBooksources.php index ae8df7332b..960f622469 100644 --- a/includes/SpecialBooksources.php +++ b/includes/SpecialBooksources.php @@ -53,13 +53,15 @@ class BookSourceList { # First, see if we have a custom list setup in # [[Wikipedia:Book sources]] or equivalent. $bstitle = Title::makeTitleSafe( NS_PROJECT, wfMsg( "booksources" ) ); - $revision = Revision::newFromTitle( $bstitle ); - if( $revision ) { - $bstext = $revision->getText(); - if( $bstext ) { - $bstext = str_replace( "MAGICNUMBER", $this->mIsbn, $bstext ); - $wgOut->addWikiText( $bstext ); - return; + if( $bstitle ) { + $revision = Revision::newFromTitle( $bstitle ); + if( $revision ) { + $bstext = $revision->getText(); + if( $bstext ) { + $bstext = str_replace( "MAGICNUMBER", $this->mIsbn, $bstext ); + $wgOut->addWikiText( $bstext ); + return; + } } } diff --git a/languages/MessagesFy.php b/languages/MessagesFy.php index 22fd7903ba..cfa9a20d4e 100644 --- a/languages/MessagesFy.php +++ b/languages/MessagesFy.php @@ -598,8 +598,6 @@ Dêr soe ek stean moatte hoe't it (goed skreaun) wurdt.", parten fan it meartaliche projekt mei in keppeling nei in direkte URL nei an ôfbyld makke hawwe kinne. Dan wurde se noch brûke, mar stean al in dizze list.", -"booksources" => "", -"booksourcetext" => "", "alphaindexline" => "$1 oan't $2", -- 2.20.1