From 9d15edd016f18584658dd69abdc11364b06c3348 Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Sat, 26 Jan 2008 00:17:02 +0000 Subject: [PATCH] * Fix for restricted namespaces/pages in Special:Export userCan('read') and userCanRead() DON'T RETURN THE SAME RESULT. WHAT THE HELL JESUS CRAP NOOOOOOOOOOOO --- RELEASE-NOTES | 2 ++ includes/SpecialExport.php | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 9699b883ac..1f52cf2bf1 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -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 == diff --git a/includes/SpecialExport.php b/includes/SpecialExport.php index 2a0d13fda4..a3a7649b4e 100644 --- a/includes/SpecialExport.php +++ b/includes/SpecialExport.php @@ -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 tag or something. - if( !$title->userCan( 'read' ) ) continue; #TODO: perhaps output an tag or something. + if( !$title->userCanRead() ) continue; #TODO: perhaps output an tag or something. $exporter->pageByTitle( $title ); } -- 2.20.1