summaryrefslogtreecommitdiff
path: root/includes/SpecialBooksources.php
diff options
context:
space:
mode:
Diffstat (limited to 'includes/SpecialBooksources.php')
-rw-r--r--includes/SpecialBooksources.php9
1 files changed, 6 insertions, 3 deletions
diff --git a/includes/SpecialBooksources.php b/includes/SpecialBooksources.php
index 5c047fbe..d3136ea4 100644
--- a/includes/SpecialBooksources.php
+++ b/includes/SpecialBooksources.php
@@ -4,8 +4,7 @@
* Special page outputs information on sourcing a book with a particular ISBN
* The parser creates links to this page when dealing with ISBNs in wikitext
*
- * @package MediaWiki
- * @subpackage Special pages
+ * @addtogroup SpecialPage
* @author Rob Church <robchur@gmail.com>
* @todo Validate ISBNs using the standard check-digit method
*/
@@ -34,7 +33,7 @@ class SpecialBookSources extends SpecialPage {
$this->isbn = $this->cleanIsbn( $isbn ? $isbn : $wgRequest->getText( 'isbn' ) );
$wgOut->addWikiText( wfMsgNoTrans( 'booksources-summary' ) );
$wgOut->addHtml( $this->makeForm() );
- if( strlen( $this->isbn) > 0 )
+ if( strlen( $this->isbn ) > 0 )
$this->showList();
}
@@ -75,6 +74,10 @@ class SpecialBookSources extends SpecialPage {
private function showList() {
global $wgOut, $wgContLang;
+ # Hook to allow extensions to insert additional HTML,
+ # e.g. for API-interacting plugins and so on
+ wfRunHooks( 'BookInformation', array( $this->isbn, &$wgOut ) );
+
# Check for a local page such as Project:Book_sources and use that if available
$title = Title::makeTitleSafe( NS_PROJECT, wfMsg( 'booksources' ) ); # Should this be wfMsgForContent()? -- RC
if( is_object( $title ) && $title->exists() ) {