Index: trunk/phase3/includes/Parser.php |
— | — | @@ -3054,13 +3054,11 @@ |
3055 | 3055 | $doNumberHeadings = $this->mOptions->getNumberHeadings(); |
3056 | 3056 | $doShowToc = true; |
3057 | 3057 | $forceTocHere = false; |
3058 | | - |
3059 | | - # Show section editing links if the user can edit the page and has |
3060 | | - # the appropriate preference set |
3061 | | - $user =& $this->mOptions->getUser(); |
3062 | | - $perm = $user->isAllowed( 'edit' ) && $this->mTitle->userCanEdit(); |
3063 | | - $pref = $this->mOptions->getEditSection(); |
3064 | | - $showEditLink = $perm && $pref; |
| 3058 | + if( !$this->mTitle->userCanEdit() ) { |
| 3059 | + $showEditLink = 0; |
| 3060 | + } else { |
| 3061 | + $showEditLink = $this->mOptions->getEditSection(); |
| 3062 | + } |
3065 | 3063 | |
3066 | 3064 | # Inhibit editsection links if requested in the page |
3067 | 3065 | $esw =& MagicWord::get( MAG_NOEDITSECTION ); |
— | — | @@ -4221,7 +4219,6 @@ |
4222 | 4220 | var $mAllowSpecialInclusion; # Allow inclusion of special pages |
4223 | 4221 | var $mTidy; # Ask for tidy cleanup |
4224 | 4222 | var $mInterfaceMessage; # Which lang to call for PLURAL and GRAMMAR |
4225 | | - var $mUser; # User being parsed for |
4226 | 4223 | |
4227 | 4224 | function getUseTeX() { return $this->mUseTeX; } |
4228 | 4225 | function getUseDynamicDates() { return $this->mUseDynamicDates; } |
— | — | @@ -4235,7 +4232,6 @@ |
4236 | 4233 | function getAllowSpecialInclusion() { return $this->mAllowSpecialInclusion; } |
4237 | 4234 | function getTidy() { return $this->mTidy; } |
4238 | 4235 | function getInterfaceMessage() { return $this->mInterfaceMessage; } |
4239 | | - function getUser() { return $this->mUser; } |
4240 | 4236 | |
4241 | 4237 | function setUseTeX( $x ) { return wfSetVar( $this->mUseTeX, $x ); } |
4242 | 4238 | function setUseDynamicDates( $x ) { return wfSetVar( $this->mUseDynamicDates, $x ); } |
— | — | @@ -4278,7 +4274,6 @@ |
4279 | 4275 | $user =& $userInput; |
4280 | 4276 | } |
4281 | 4277 | |
4282 | | - $this->mUser =& $user; |
4283 | 4278 | $this->mUseTeX = $wgUseTeX; |
4284 | 4279 | $this->mUseDynamicDates = $wgUseDynamicDates; |
4285 | 4280 | $this->mInterwikiMagic = $wgInterwikiMagic; |
— | — | @@ -4288,7 +4283,7 @@ |
4289 | 4284 | $this->mSkin =& $user->getSkin(); |
4290 | 4285 | wfProfileOut( $fname.'-skin' ); |
4291 | 4286 | $this->mDateFormat = $user->getOption( 'date' ); |
4292 | | - $this->mEditSection = $user->getOption( 'editsection' ); |
| 4287 | + $this->mEditSection = true; |
4293 | 4288 | $this->mNumberHeadings = $user->getOption( 'numberheadings' ); |
4294 | 4289 | $this->mAllowSpecialInclusion = $wgAllowSpecialInclusion; |
4295 | 4290 | $this->mTidy = false; |
Index: trunk/phase3/RELEASE-NOTES |
— | — | @@ -266,7 +266,6 @@ |
267 | 267 | Special:Statistics |
268 | 268 | * (bug 5949) Update to Indonesian localisation (id) |
269 | 269 | * (bug 5862) Update of Belarusian translation (be) |
270 | | -* (bug 5651) Disable section editing links for users who can't edit |
271 | 270 | * (bug 5950) Improvements to French localisation |
272 | 271 | * (bug 5805) {{plural:}} support for counters in some special pages |
273 | 272 | * (bug 5952) Improvement to German localisation (de) |