Mailing List Archive

Trivial bugfix in include/Math.php / Leave it as TeX
FYI

-----Forwarded Message-----
> From: Laurent GUERBY <laurent@guerby.net>
> To: Wikimedia developers <wikitech-l@Wikipedia.org>
> Subject: [Wikitech-l] Trivial bugfix in include/Math.php / Leave it as TeX
> Date: Sun, 06 Jun 2004 23:35:31 +0200
>
> Otherwise when a user chooses "Leave it as TeX" he always gets "$ $"
> which is not that useful :).
>
> Laurent
>
> --- Math.php~ 2004-06-06 21:14:58.655353058 +0200
> +++ Math.php 2004-06-06 23:26:07.026770706 +0200
> @@ -30,7 +30,7 @@
>
> if( $this->mode == MW_MATH_SOURCE ) {
> # No need to render or parse anything more!
> - return ('$ '.htmlspecialchars( $tex ).' $');
> + return ('$ '.htmlspecialchars( $this->tex ).' $');
> }
>
> if( !$this->_recall() ) {