http://www.mediawiki.org/wiki/Special:Code/MediaWiki/88988
Revision: 88988
Author: vyznev
Date: 2011-05-27 18:51:26 +0000 (Fri, 27 May 2011)
Log Message:
-----------
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)
Modified Paths:
--------------
trunk/phase3/includes/parser/ParserOptions.php
Modified: trunk/phase3/includes/parser/ParserOptions.php
===================================================================
--- trunk/phase3/includes/parser/ParserOptions.php 2011-05-27 18:16:51 UTC
(rev 88987)
+++ trunk/phase3/includes/parser/ParserOptions.php 2011-05-27 18:51:26 UTC
(rev 88988)
@@ -60,9 +60,8 @@
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 @@
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; }
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs