aboutsummaryrefslogtreecommitdiffstats
path: root/includes/ParserCache.php
diff options
context:
space:
mode:
authorAndrew Garrett <werdna@users.mediawiki.org>2007-01-13 02:37:02 +0000
committerAndrew Garrett <werdna@users.mediawiki.org>2007-01-13 02:37:02 +0000
commit78eb71793d05771693ee4e6c36e4f64cf08dfc80 (patch)
treef2bd8df28f9ef3508eeb9cfcfae6e76af411a92f /includes/ParserCache.php
parent161d9aee1f235aee5c22d955286e629e22df1728 (diff)
downloadmediawikicore-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.php2
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 {