Call static isValidIsbn() statically. Not sure why E_ALL | E_STRICT didn't yell at...
authorChad Horohoe <demon@users.mediawiki.org>
Wed, 18 Feb 2009 02:00:14 +0000 (02:00 +0000)
committerChad Horohoe <demon@users.mediawiki.org>
Wed, 18 Feb 2009 02:00:14 +0000 (02:00 +0000)
includes/specials/SpecialBooksources.php

index 12b119d..db466c1 100644 (file)
@@ -34,7 +34,7 @@ class SpecialBookSources extends SpecialPage {
                $wgOut->addWikiMsg( 'booksources-summary' );
                $wgOut->addHTML( $this->makeForm() );
                if( strlen( $this->isbn ) > 0 ) {
-                       if( !$this->isValidIsbn( $this->isbn ) ) {
+                       if( !self::isValidISBN( $this->isbn ) ) {
                                $wgOut->wrapWikiMsg( '<div class="error">$1</div>', 'booksources-invalid-isbn' );
                        }
                        $this->showList();