<?php
-require_once( dirname(__FILE__).'/includes/ProfilerStub.php' );
+#require_once( dirname(__FILE__).'/includes/ProfilerStub.php' );
+
+ require_once( dirname(__FILE__).'/includes/Profiler.php' );
+ $wgProfiler = new Profiler;
/**
* To use a profiler, delete the line above and add something like this:
}
} else {
$sent = mail( $to->toString(), wfQuotedPrintable( $subject ), $body, $headers );
+ print "RESULT: $sent.";
}
} else {
$wgErrorString = 'PHP is not configured to send mail';
*/
static function errorHandler( $code, $string ) {
global $wgErrorString;
- $wgErrorString = preg_replace( '/^mail\(\)(\s*\[.*?\])?: /', '', $string );
+ $wgErrorString = preg_replace( '/^mail\(\)(\s*\[.*?\])?: /', '', $string . "XXXXXXXXXXXXXXXXXX");
}
/**