Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F7066
wgSMTP_pear_check.patch
Public
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Authored By
•
bzimport
Nov 21 2014, 11:14 PM
2014-11-21 23:14:14 (UTC+0)
Size
696 B
Referenced Files
None
Subscribers
None
wgSMTP_pear_check.patch
View Options
Index: phase3/includes/UserMailer.php
===================================================================
--- phase3/includes/UserMailer.php (revision 75343)
+++ phase3/includes/UserMailer.php (working copy)
@@ -127,6 +127,17 @@
}
if (is_array( $wgSMTP )) {
+ $found = false;
+ $pathArray = explode( PATH_SEPARATOR, get_include_path() );
+ foreach ( $pathArray as $path ) {
+ if ( file_exists( $path . PATH_SEPARATOR . 'Mail.php' ) ) {
+ $found = true;
+ break;
+ }
+ }
+ if ( !$found ) {
+ throw new MWException( 'PEAR mail package is not installed in ' . __METHOD__ );
+ }
require_once( 'Mail.php' );
$msgid = str_replace(" ", "_", microtime());
File Metadata
Details
Attached
Mime Type
text/x-diff
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
6602
Default Alt Text
wgSMTP_pear_check.patch (696 B)
Attached To
Mode
T27642: Unclean $wgSMTP pear mail package loading
Attached
Detach File
Event Timeline
Log In to Comment