[Mediawiki-l] Trivial bugfix in include/Math.php / Leave it as TeX

Laurent GUERBY laurent at guerby.net
Mon Jun 7 06:33:12 UTC 2004


FYI

-----Forwarded Message-----
> From: Laurent GUERBY <laurent at guerby.net>
> To: Wikimedia developers <wikitech-l at 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() ) {





More information about the MediaWiki-l mailing list