From: Brion Vibber Date: Tue, 11 Mar 2008 21:59:41 +0000 (+0000) Subject: Fix fatal error in Special:Export -- invalid title when using Template inclusion X-Git-Tag: 1.31.0-rc.0~49165 X-Git-Url: http://git.cyclocoop.org/data/Luca_Pacioli_%28Gemaelde%29.jpeg?a=commitdiff_plain;h=d5c62f498b8305df7d5367e5c94a70d04d4e53df;p=lhc%2Fweb%2Fwiklou.git Fix fatal error in Special:Export -- invalid title when using Template inclusion --- 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(