From 63601400e476c6cf43d985f3e7b9864681695ed4 Mon Sep 17 00:00:00 2001 From: Pierre Schmitz Date: Fri, 18 Jan 2013 16:46:04 +0100 Subject: Update to MediaWiki 1.20.2 this update includes: * adjusted Arch Linux skin * updated FluxBBAuthPlugin * patch for https://bugzilla.wikimedia.org/show_bug.cgi?id=44024 --- includes/specials/SpecialBooksources.php | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'includes/specials/SpecialBooksources.php') diff --git a/includes/specials/SpecialBooksources.php b/includes/specials/SpecialBooksources.php index 48ca4f05..bf7de3f5 100644 --- a/includes/specials/SpecialBooksources.php +++ b/includes/specials/SpecialBooksources.php @@ -46,7 +46,7 @@ class SpecialBookSources extends SpecialPage { /** * Show the special page * - * @param $isbn ISBN passed as a subpage parameter + * @param $isbn string ISBN passed as a subpage parameter */ public function execute( $isbn ) { $this->setHeaders(); @@ -63,7 +63,8 @@ class SpecialBookSources extends SpecialPage { /** * Returns whether a given ISBN (10 or 13) is valid. True indicates validity. - * @param isbn ISBN passed for check + * @param isbn string ISBN passed for check + * @return bool */ public static function isValidISBN( $isbn ) { $isbn = self::cleanIsbn( $isbn ); @@ -100,7 +101,7 @@ class SpecialBookSources extends SpecialPage { /** * Trim ISBN and remove characters which aren't required * - * @param $isbn Unclean ISBN + * @param $isbn string Unclean ISBN * @return string */ private static function cleanIsbn( $isbn ) { @@ -142,7 +143,7 @@ class SpecialBookSources extends SpecialPage { $page = $this->msg( 'booksources' )->inContentLanguage()->text(); $title = Title::makeTitleSafe( NS_PROJECT, $page ); # Show list in content language if( is_object( $title ) && $title->exists() ) { - $rev = Revision::newFromTitle( $title ); + $rev = Revision::newFromTitle( $title, false, Revision::READ_NORMAL ); $this->getOutput()->addWikiText( str_replace( 'MAGICNUMBER', $this->isbn, $rev->getText() ) ); return true; } @@ -160,8 +161,8 @@ class SpecialBookSources extends SpecialPage { /** * Format a book source list item * - * @param $label Book source label - * @param $url Book source URL + * @param $label string Book source label + * @param $url string Book source URL * @return string */ private function makeListItem( $label, $url ) { -- cgit v1.2.3-54-g00ecf