mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Description2
synced 2024-11-24 06:43:31 +00:00
Removed unused local var from Description2.
This commit is contained in:
parent
627736f051
commit
b7ba4ab627
Notes:
Sean Colombo
2011-07-07 18:03:08 +00:00
|
@ -49,7 +49,6 @@ function efDescription2SetDescription( $parser, $desc ) {
|
||||||
|
|
||||||
$wgHooks['ParserAfterTidy'][] = 'egDescription2ParserAfterTidy';
|
$wgHooks['ParserAfterTidy'][] = 'egDescription2ParserAfterTidy';
|
||||||
function egDescription2ParserAfterTidy( &$parser, &$text ) {
|
function egDescription2ParserAfterTidy( &$parser, &$text ) {
|
||||||
global $wgContLang;
|
|
||||||
$desc = '';
|
$desc = '';
|
||||||
|
|
||||||
$myText = preg_replace('%<table\b[^>]*+>(?:(?R)|[^<]*+(?:(?!</?table\b)<[^<]*+)*+)*+</table>%i', '', $text);
|
$myText = preg_replace('%<table\b[^>]*+>(?:(?R)|[^<]*+(?:(?!</?table\b)<[^<]*+)*+)*+</table>%i', '', $text);
|
||||||
|
|
Loading…
Reference in a new issue