From d5c62f498b8305df7d5367e5c94a70d04d4e53df Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Tue, 11 Mar 2008 21:59:41 +0000 Subject: [PATCH] Fix fatal error in Special:Export -- invalid title when using Template inclusion --- includes/SpecialExport.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/SpecialExport.php b/includes/SpecialExport.php index 99d9958fec..1fe2e44b8f 100644 --- a/includes/SpecialExport.php +++ b/includes/SpecialExport.php @@ -83,8 +83,8 @@ function wfExportGetLinks( $inputPages, $pageSet, $table, $fields, $join ) { $dbr = wfGetDB( DB_SLAVE ); foreach( $inputPages as $page ) { $title = Title::newFromText( $page ); - $pageSet[$title->getPrefixedText()] = true; if( $title ) { + $pageSet[$title->getPrefixedText()] = true; /// @fixme May or may not be more efficient to batch these /// by namespace when given multiple input pages. $result = $dbr->select( -- 2.20.1