<?
-gobal $IP;
include( "./LocalSettings.php" );
-include( "$IP/Setup.php" );
+include( "Setup.php" );
header( "Content-type: text/xml; charset={$wgInputEncoding}" );
print "<";
print "?xml version=\"1.0\" encoding=\"utf-8\"?";
$md5_sql = mysql_escape_string(pack("H32", $md5));
$sql = "SELECT math_outputhash,math_html_conservativeness,math_html,math_mathml FROM math WHERE math_inputhash = '".$md5_sql."'";
- $res = wfQuery( $sql, $fname );
+ $res = wfQuery( $sql, 0, $fname );
if ( wfNumRows( $res ) == 0 )
{
$cmd = "./math/texvc ".escapeshellarg($wgTmpDirectory)." ".
$sql = "INSERT INTO math VALUES ('".$md5_sql."', '".$outmd5_sql."', ".$conservativeness.", ".$sql_html.", ".$sql_mathml.")";
- $res = wfQuery( $sql, $fname );
+ $res = wfQuery( $sql, 0, $fname );
// we don't really care if it fails
} else {
$rpage = wfFetchObject ( $res );