From 505878dc6208d1cbacc82a834bef34d4c7ed3c06 Mon Sep 17 00:00:00 2001 From: Nick Jenkins Date: Wed, 18 Oct 2006 05:29:57 +0000 Subject: [PATCH] Revert part of r17066 - ParserOptions private variables not being treated as private, reported by Simetrical, may only be experienced when tidy is enabled, I need to grep more in future. --- includes/Parser.php | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/includes/Parser.php b/includes/Parser.php index f4b375122e..845768048d 100644 --- a/includes/Parser.php +++ b/includes/Parser.php @@ -4668,23 +4668,23 @@ class ParserOutput */ class ParserOptions { - # All variables are private - private $mUseTeX; # Use texvc to expand tags - private $mUseDynamicDates; # Use DateFormatter to format dates - private $mInterwikiMagic; # Interlanguage links are removed and returned in an array - private $mAllowExternalImages; # Allow external images inline - private $mAllowExternalImagesFrom; # If not, any exception? - private $mSkin; # Reference to the preferred skin - private $mDateFormat; # Date format index - private $mEditSection; # Create "edit section" links - private $mNumberHeadings; # Automatically number headings - private $mAllowSpecialInclusion; # Allow inclusion of special pages - private $mTidy; # Ask for tidy cleanup - private $mInterfaceMessage; # Which lang to call for PLURAL and GRAMMAR - private $mMaxIncludeSize; # Maximum size of template expansions, in bytes - private $mRemoveComments; # Remove HTML comments. ONLY APPLIES TO PREPROCESS OPERATIONS - - private $mUser; # Stored user object, just used to initialise the skin + # All variables are supposed to be private in theory, although in practise this is not the case. + var $mUseTeX; # Use texvc to expand tags + var $mUseDynamicDates; # Use DateFormatter to format dates + var $mInterwikiMagic; # Interlanguage links are removed and returned in an array + var $mAllowExternalImages; # Allow external images inline + var $mAllowExternalImagesFrom; # If not, any exception? + var $mSkin; # Reference to the preferred skin + var $mDateFormat; # Date format index + var $mEditSection; # Create "edit section" links + var $mNumberHeadings; # Automatically number headings + var $mAllowSpecialInclusion; # Allow inclusion of special pages + var $mTidy; # Ask for tidy cleanup + var $mInterfaceMessage; # Which lang to call for PLURAL and GRAMMAR + var $mMaxIncludeSize; # Maximum size of template expansions, in bytes + var $mRemoveComments; # Remove HTML comments. ONLY APPLIES TO PREPROCESS OPERATIONS + + var $mUser; # Stored user object, just used to initialise the skin function getUseTeX() { return $this->mUseTeX; } function getUseDynamicDates() { return $this->mUseDynamicDates; } -- 2.20.1