dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge "Special:Newpages feed now shows first revision instead of latest revision"
[lhc/web/wiklou.git]
/
includes
/
parser
/
ParserOutput.php
diff --git
a/includes/parser/ParserOutput.php
b/includes/parser/ParserOutput.php
index
7de3b30
..
cfb0c3e
100644
(file)
--- a/
includes/parser/ParserOutput.php
+++ b/
includes/parser/ParserOutput.php
@@
-253,7
+253,7
@@
class ParserOutput extends CacheTime {
$text = $this->mText;
if ( $this->mEditSectionTokens ) {
$text = preg_replace_callback(
$text = $this->mText;
if ( $this->mEditSectionTokens ) {
$text = preg_replace_callback(
-
ParserOutput
::EDITSECTION_REGEX,
+
self
::EDITSECTION_REGEX,
function ( $m ) {
global $wgOut, $wgLang;
$editsectionPage = Title::newFromText( htmlspecialchars_decode( $m[1] ) );
function ( $m ) {
global $wgOut, $wgLang;
$editsectionPage = Title::newFromText( htmlspecialchars_decode( $m[1] ) );
@@
-274,7
+274,7
@@
class ParserOutput extends CacheTime {
$text
);
} else {
$text
);
} else {
- $text = preg_replace(
ParserOutput
::EDITSECTION_REGEX, '', $text );
+ $text = preg_replace(
self
::EDITSECTION_REGEX, '', $text );
}
// If you have an old cached version of this class - sorry, you can't disable the TOC
}
// If you have an old cached version of this class - sorry, you can't disable the TOC
@@
-708,7
+708,7
@@
class ParserOutput extends CacheTime {
* @since 1.25
*/
public function addTrackingCategory( $msg, $title ) {
* @since 1.25
*/
public function addTrackingCategory( $msg, $title ) {
- if ( $title->
getNamespace() === NS_SPECIAL
) {
+ if ( $title->
isSpecialPage()
) {
wfDebug( __METHOD__ . ": Not adding tracking category $msg to special page!\n" );
return false;
}
wfDebug( __METHOD__ . ": Not adding tracking category $msg to special page!\n" );
return false;
}