r37393 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r37392‎ | r37393 | r37394 >
Date:15:05, 9 July 2008
Author:daniel
Status:old
Tags:
Comment:
improved integration into category bar. Note: options is not functional until SkinJoinCategoryLinks hook is implemented (merge pending)
Modified paths:
  • /trunk/phase3/StartProfiler.php (modified) (history)
  • /trunk/phase3/includes/UserMailer.php (modified) (history)

Diff [purge]

Index: trunk/phase3/StartProfiler.php
@@ -1,7 +1,10 @@
22 <?php
33
4 -require_once( dirname(__FILE__).'/includes/ProfilerStub.php' );
 4+#require_once( dirname(__FILE__).'/includes/ProfilerStub.php' );
55
 6+ require_once( dirname(__FILE__).'/includes/Profiler.php' );
 7+ $wgProfiler = new Profiler;
 8+
69 /**
710 * To use a profiler, delete the line above and add something like this:
811 *
Index: trunk/phase3/includes/UserMailer.php
@@ -193,6 +193,7 @@
194194 }
195195 } else {
196196 $sent = mail( $to->toString(), wfQuotedPrintable( $subject ), $body, $headers );
 197+ print "RESULT: $sent.";
197198 }
198199 } else {
199200 $wgErrorString = 'PHP is not configured to send mail';
@@ -222,7 +223,7 @@
223224 */
224225 static function errorHandler( $code, $string ) {
225226 global $wgErrorString;
226 - $wgErrorString = preg_replace( '/^mail\(\)(\s*\[.*?\])?: /', '', $string );
 227+ $wgErrorString = preg_replace( '/^mail\(\)(\s*\[.*?\])?: /', '', $string . "XXXXXXXXXXXXXXXXXX");
227228 }
228229
229230 /**

Follow-up revisions

RevisionCommit summaryAuthorDate
r37397Partial revert of r37393ialex15:42, 9 July 2008
r37423Revert the rest of r37393 -- appears to be debugging stuff accidentally commi...brion17:49, 9 July 2008

Status & tagging log