* (bug 12753) Empty captions in MediaWiki:Sidebar result in PHP errors
* (bug 12790) Page protection is not logged when edit-protection is used and move-protection is not
* (bug 12793) Fix for restricted namespaces/pages in Special:Export
+* Fix for Special:Export so it doesn't ignore the page named '0'
== Parser changes in 1.12 ==
return $pageSet;
}
+/**
+ * Callback function to remove empty strings from the pages array.
+ */
+function wfFilterPage( $page ) {
+ return $page !== '' && $page !== null;
+}
+
/**
*
*/
}
/* Split up the input and look up linked pages */
- $inputPages = array_filter( explode( "\n", $page ) );
+ $inputPages = array_filter( explode( "\n", $page ), 'wfFilterPage' );
$pageSet = array_flip( $inputPages );
if( $wgRequest->getCheck( 'templates' ) ) {