* Fix missing bad title check in Special:Booksources
authorBrion Vibber <brion@users.mediawiki.org>
Sat, 18 Feb 2006 01:09:45 +0000 (01:09 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Sat, 18 Feb 2006 01:09:45 +0000 (01:09 +0000)
* Remove empty booksources string in fy

RELEASE-NOTES
includes/SpecialBooksources.php
languages/MessagesFy.php

index 4fb35ee..753b4fb 100644 (file)
@@ -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 ===
index ae8df73..960f622 100644 (file)
@@ -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;
+                               }
                        }
                }
 
index 22fd790..cfa9a20 100644 (file)
@@ -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",