From 84aa3fd2827ac48cb6b801ff2a6490f1f31f85ab Mon Sep 17 00:00:00 2001 From: Ilmari Karonen Date: Fri, 27 May 2011 18:51:26 +0000 Subject: [PATCH] bug 29123: record use of the "editsection" option so that users who can't edit (or have section edit links disabled) get a different cache key; also simplify freaky code layout (briefly tested, seem to work) --- includes/parser/ParserOptions.php | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) diff --git a/includes/parser/ParserOptions.php b/includes/parser/ParserOptions.php index 98ec4a1d5e..22cd231764 100644 --- a/includes/parser/ParserOptions.php +++ b/includes/parser/ParserOptions.php @@ -60,9 +60,8 @@ class ParserOptions { function getAllowExternalImages() { return $this->mAllowExternalImages; } function getAllowExternalImagesFrom() { return $this->mAllowExternalImagesFrom; } function getEnableImageWhitelist() { return $this->mEnableImageWhitelist; } - function getEditSection() { return $this->mEditSection; } - function getNumberHeadings() { $this->optionUsed('numberheadings'); - return $this->mNumberHeadings; } + function getEditSection() { $this->optionUsed('editsection'); return $this->mEditSection; } + function getNumberHeadings() { $this->optionUsed('numberheadings'); return $this->mNumberHeadings; } function getAllowSpecialInclusion() { return $this->mAllowSpecialInclusion; } function getTidy() { return $this->mTidy; } function getInterfaceMessage() { return $this->mInterfaceMessage; } @@ -76,17 +75,13 @@ class ParserOptions { function getEnableLimitReport() { return $this->mEnableLimitReport; } function getCleanSignatures() { return $this->mCleanSignatures; } function getExternalLinkTarget() { return $this->mExternalLinkTarget; } - function getMath() { $this->optionUsed('math'); - return $this->mMath; } - function getThumbSize() { $this->optionUsed('thumbsize'); - return $this->mThumbSize; } - function getStubThreshold() { $this->optionUsed('stubthreshold'); - return $this->mStubThreshold; } + function getMath() { $this->optionUsed('math'); return $this->mMath; } + function getThumbSize() { $this->optionUsed('thumbsize'); return $this->mThumbSize; } + function getStubThreshold() { $this->optionUsed('stubthreshold'); return $this->mStubThreshold; } function getIsPreview() { return $this->mIsPreview; } function getIsSectionPreview() { return $this->mIsSectionPreview; } - function getIsPrintable() { $this->optionUsed('printable'); - return $this->mIsPrintable; } + function getIsPrintable() { $this->optionUsed('printable'); return $this->mIsPrintable; } function getUser() { return $this->mUser; } function getPreSaveTransform() { return $this->mPreSaveTransform; } -- 2.20.1