userCan('read') and userCanRead() DON'T RETURN THE SAME RESULT.
WHAT THE HELL
JESUS CRAP
NOOOOOOOOOOOO
* (bug 12768) Database query syntax error in maintenance/storage/compressOld.inc
* (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
+* Fix for restricted namespaces/pages in Special:Export
+
== Parser changes in 1.12 ==
#Bug 8824: Only export pages the user can read
$title = Title::newFromText( $page );
if( is_null( $title ) ) continue; #TODO: perhaps output an <error> tag or something.
- if( !$title->userCan( 'read' ) ) continue; #TODO: perhaps output an <error> tag or something.
+ if( !$title->userCanRead() ) continue; #TODO: perhaps output an <error> tag or something.
$exporter->pageByTitle( $title );
}