Index: trunk/phase3/includes/parser/Parser.php |
— | — | @@ -4140,7 +4140,7 @@ |
4141 | 4141 | ); |
4142 | 4142 | |
4143 | 4143 | # give headline the correct <h#> tag |
4144 | | - if ( $showEditLink && $sectionIndex !== false ) { |
| 4144 | + if ( $sectionIndex !== false ) { |
4145 | 4145 | // Output edit section links as markers with styles that can be customized by skins |
4146 | 4146 | if ( $isTemplate ) { |
4147 | 4147 | # Put a T flag in the section identifier, to indicate to extractSections() |
Index: trunk/phase3/includes/parser/ParserCache.php |
— | — | @@ -177,6 +177,11 @@ |
178 | 178 | } |
179 | 179 | |
180 | 180 | wfDebug( "Found.\n" ); |
| 181 | + |
| 182 | + // The edit section preference may not be the appropiate one in |
| 183 | + // the ParserOutput, as we are not storing it in the parsercache |
| 184 | + // key. Force it here. See bug 31445. |
| 185 | + $value->setEditSectionTokens( $popts->getEditSection() ); |
181 | 186 | |
182 | 187 | if ( !$useOutdated && $value->expired( $touched ) ) { |
183 | 188 | wfIncrStats( "pcache_miss_expired" ); |