Index: trunk/phase3/includes/parser/ParserOptions.php |
— | — | @@ -5,8 +5,7 @@ |
6 | 6 | * @todo document |
7 | 7 | * @ingroup Parser |
8 | 8 | */ |
9 | | -class ParserOptions |
10 | | -{ |
| 9 | +class ParserOptions { |
11 | 10 | # All variables are supposed to be private in theory, although in practise this is not the case. |
12 | 11 | var $mUseTeX; # Use texvc to expand <math> tags |
13 | 12 | var $mUseDynamicDates; # Use DateFormatter to format dates |
— | — | @@ -35,7 +34,7 @@ |
36 | 35 | var $mUser; # Stored user object, just used to initialise the skin |
37 | 36 | var $mIsPreview; # Parsing the page for a "preview" operation |
38 | 37 | var $mIsSectionPreview; # Parsing the page for a "preview" operation on a single section |
39 | | - var $mIsPrintable; # Parsing the printable version of the page |
| 38 | + var $mIsPrintable; # Parsing the printable version of the page |
40 | 39 | |
41 | 40 | function getUseTeX() { return $this->mUseTeX; } |
42 | 41 | function getUseDynamicDates() { return $this->mUseDynamicDates; } |
— | — | @@ -127,8 +126,9 @@ |
128 | 127 | global $wgAllowExternalImagesFrom, $wgEnableImageWhitelist, $wgAllowSpecialInclusion, $wgMaxArticleSize; |
129 | 128 | global $wgMaxPPNodeCount, $wgMaxTemplateDepth, $wgMaxPPExpandDepth, $wgCleanSignatures; |
130 | 129 | global $wgExternalLinkTarget; |
131 | | - $fname = 'ParserOptions::initialiseFromUser'; |
132 | | - wfProfileIn( $fname ); |
| 130 | + |
| 131 | + wfProfileIn( __METHOD__ ); |
| 132 | + |
133 | 133 | if ( !$userInput ) { |
134 | 134 | global $wgUser; |
135 | 135 | if ( isset( $wgUser ) ) { |
— | — | @@ -167,6 +167,7 @@ |
168 | 168 | $this->mExternalLinkTarget = $wgExternalLinkTarget; |
169 | 169 | $this->mIsPreview = false; |
170 | 170 | $this->mIsSectionPreview = false; |
171 | | - wfProfileOut( $fname ); |
| 171 | + |
| 172 | + wfProfileOut( __METHOD__ ); |
172 | 173 | } |
173 | 174 | } |