aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexandre Emsenhuber <ialex@users.mediawiki.org>2011-12-17 18:52:52 +0000
committerAlexandre Emsenhuber <ialex@users.mediawiki.org>2011-12-17 18:52:52 +0000
commitbca521187e7965450844d15eaf5786ccd2d42d10 (patch)
tree864ac7ae4d6e027e9705df5c2050b94df705a9da
parent59e9daf6e7a4d1e016b5e9d97d6a3fc7d7072d6d (diff)
downloadmediawikicore-bca521187e7965450844d15eaf5786ccd2d42d10.tar.gz
mediawikicore-bca521187e7965450844d15eaf5786ccd2d42d10.zip
Pass the User object to Title::userCan()
Notes
Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/106518
-rw-r--r--includes/specials/SpecialExport.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/specials/SpecialExport.php b/includes/specials/SpecialExport.php
index 814d2043bfee..49f6839f2e2d 100644
--- a/includes/specials/SpecialExport.php
+++ b/includes/specials/SpecialExport.php
@@ -326,7 +326,7 @@ class SpecialExport extends SpecialPage {
if( is_null( $title ) ) {
continue; #TODO: perhaps output an <error> tag or something.
}
- if( !$title->userCan( 'read' ) ) {
+ if( !$title->userCan( 'read', $this->getUser() ) ) {
continue; #TODO: perhaps output an <error> tag or something.
}