dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
e1ecb47
)
Fixed ~<includeonly>~</includeonly>~~, problem reported on enwiki village pump
author
Tim Starling
<tstarling@users.mediawiki.org>
Thu, 12 Jan 2006 15:42:38 +0000
(15:42 +0000)
committer
Tim Starling
<tstarling@users.mediawiki.org>
Thu, 12 Jan 2006 15:42:38 +0000
(15:42 +0000)
includes/Parser.php
patch
|
blob
|
history
diff --git
a/includes/Parser.php
b/includes/Parser.php
index
0030dac
..
b6af7fa
100644
(file)
--- a/
includes/Parser.php
+++ b/
includes/Parser.php
@@
-3167,15
+3167,17
@@
class Parser
putenv( 'TZ='.$oldtz );
}
putenv( 'TZ='.$oldtz );
}
- # Signatures
- $sigText = $this->getUserSig( $user );
- $text = preg_replace( '/~~~~~/', $d, $text );
- $text = preg_replace( '/~~~~/', "$sigText $d", $text );
- $text = preg_replace( '/~~~/', $sigText, $text );
-
# Variable replacement
# Because mOutputType is OT_WIKI, this will only process {{subst:xxx}} type tags
$text = $this->replaceVariables( $text );
# Variable replacement
# Because mOutputType is OT_WIKI, this will only process {{subst:xxx}} type tags
$text = $this->replaceVariables( $text );
+
+ # Signatures
+ $sigText = $this->getUserSig( $user );
+ $text = strtr( $text, array(
+ '~~~~~' => $d,
+ '~~~~' => "$sigText $d",
+ '~~~' => $sigText
+ ) );
# Context links: [[|name]] and [[name (context)|]]
#
# Context links: [[|name]] and [[name (context)|]]
#
@@
-3287,6
+3289,8
@@
class Parser
);
$text = preg_replace( '/~{3,5}/', '', $text );
);
$text = preg_replace( '/~{3,5}/', '', $text );
+ $text = $this->replaceVariables( $text );
+
return $text;
}
return $text;
}