* Fix for restricted namespaces/pages in Special:Export
authorBrion Vibber <brion@users.mediawiki.org>
Sat, 26 Jan 2008 00:17:02 +0000 (00:17 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Sat, 26 Jan 2008 00:17:02 +0000 (00:17 +0000)
userCan('read') and userCanRead() DON'T RETURN THE SAME RESULT.
WHAT THE HELL
JESUS CRAP
NOOOOOOOOOOOO

RELEASE-NOTES
includes/SpecialExport.php

index 9699b88..1f52cf2 100644 (file)
@@ -339,6 +339,8 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN
 * (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 ==
 
index 2a0d13f..a3a7649 100644 (file)
@@ -238,7 +238,7 @@ function wfSpecialExport( $page = '' ) {
                        #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 );
                }