diff options
author | Andrew Garrett <werdna@users.mediawiki.org> | 2007-01-13 02:37:02 +0000 |
---|---|---|
committer | Andrew Garrett <werdna@users.mediawiki.org> | 2007-01-13 02:37:02 +0000 |
commit | 78eb71793d05771693ee4e6c36e4f64cf08dfc80 (patch) | |
tree | f2bd8df28f9ef3508eeb9cfcfae6e76af411a92f /includes/ParserCache.php | |
parent | 161d9aee1f235aee5c22d955286e629e22df1728 (diff) | |
download | mediawikicore-78eb71793d05771693ee4e6c36e4f64cf08dfc80.tar.gz mediawikicore-78eb71793d05771693ee4e6c36e4f64cf08dfc80.zip |
Possibly partial patch to make userCanEdit avoid running cascade-protection queries on page-view.
Notes
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/19190
Diffstat (limited to 'includes/ParserCache.php')
-rw-r--r-- | includes/ParserCache.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/ParserCache.php b/includes/ParserCache.php index 37a42b7f5cbf..b8e43e90d7d3 100644 --- a/includes/ParserCache.php +++ b/includes/ParserCache.php @@ -35,7 +35,7 @@ class ParserCache { function getKey( &$article, &$user ) { global $action; $hash = $user->getPageRenderingHash(); - if( !$article->mTitle->userCanEdit() ) { + if( !$article->mTitle->quickUserCanEdit() ) { // section edit links are suppressed even if the user has them on $edit = '!edit=0'; } else { |