aboutsummaryrefslogtreecommitdiffstats
path: root/includes/parser/ParserOptions.php
diff options
context:
space:
mode:
authorPlatonides <platonides@users.mediawiki.org>2010-08-05 14:37:50 +0000
committerPlatonides <platonides@users.mediawiki.org>2010-08-05 14:37:50 +0000
commit7bfebad30875b852e1e70bde10dbd12fa3e8a673 (patch)
tree1152888a8485266256f5c9d4f0ad08228fe8a50d /includes/parser/ParserOptions.php
parentb63c3457a4123354fd2166ff977cbcc02b86ee8f (diff)
downloadmediawikicore-7bfebad30875b852e1e70bde10dbd12fa3e8a673.tar.gz
mediawikicore-7bfebad30875b852e1e70bde10dbd12fa3e8a673.zip
Change quickUserCan( 'edit' ) and getIsPrintable() into setEditSection( false )
Follow up r48544. Init ParserOptions::mIsPrintable in initialiseFromUser() Move the "No edit section it's printable" from Parser to Article. This leaves getIsPrintable() unused. Left there for extensions (none seems to be using it, could be removed). The "even if the user has them on" comment wasn't accurate. The user preference only controls them via CSS. Anyway, it would work as expected now if it got moved into ParserOptions. The setEditSection() no longer set it to true. Remove the quickUserCan( 'edit' ) which is just a hidden way of calling $wgUser from the Parser to be explicitely done in Article to disable the editsection. This results in quickUserCan being called once instead of twice if $wgUseETag == true;.
Notes
Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/70498
Diffstat (limited to 'includes/parser/ParserOptions.php')
-rw-r--r--includes/parser/ParserOptions.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/includes/parser/ParserOptions.php b/includes/parser/ParserOptions.php
index 71377e311d34..977803f55c04 100644
--- a/includes/parser/ParserOptions.php
+++ b/includes/parser/ParserOptions.php
@@ -165,6 +165,7 @@ class ParserOptions {
$this->mExternalLinkTarget = $wgExternalLinkTarget;
$this->mIsPreview = false;
$this->mIsSectionPreview = false;
+ $this->mIsPrintable = false;
wfProfileOut( __METHOD__ );
}