improved integration into category bar. Note: options is not functional until SkinJo...
authorDaniel Kinzler <daniel@users.mediawiki.org>
Wed, 9 Jul 2008 15:05:25 +0000 (15:05 +0000)
committerDaniel Kinzler <daniel@users.mediawiki.org>
Wed, 9 Jul 2008 15:05:25 +0000 (15:05 +0000)
StartProfiler.php
includes/UserMailer.php

index 3fcf69e..2a35167 100644 (file)
@@ -1,6 +1,9 @@
 <?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:
index 89753f2..0066a71 100644 (file)
@@ -193,6 +193,7 @@ class UserMailer {
                                        }
                                } else {
                                        $sent = mail( $to->toString(), wfQuotedPrintable( $subject ), $body, $headers );
+                                       print "RESULT: $sent.";
                                }
                        } else {
                                $wgErrorString = 'PHP is not configured to send mail';
@@ -222,7 +223,7 @@ class UserMailer {
         */
        static function errorHandler( $code, $string ) {
                global $wgErrorString;
-               $wgErrorString = preg_replace( '/^mail\(\)(\s*\[.*?\])?: /', '', $string );
+               $wgErrorString = preg_replace( '/^mail\(\)(\s*\[.*?\])?: /', '', $string . "XXXXXXXXXXXXXXXXXX");
        }
 
        /**