[mythtv-commits] Ticket #354: mythweb should attempt to use $_SERVER['SERVER_ADMIN'] before attempting to figure out it's own email address

MythTV mythtv at cvs.mythtv.org
Tue Sep 20 20:09:39 UTC 2005


#354: mythweb should attempt to use $_SERVER['SERVER_ADMIN'] before attempting to
figure out it's own email address
---------------------+------------------------------------------------------
 Reporter:  kormoc   |       Owner:  xris
     Type:  defect   |      Status:  new 
 Priority:  minor    |   Milestone:      
Component:  mythweb  |     Version:      
 Severity:  low      |  ---------------------+------------------------------------------------------
 I'd recommend changing line 33 in file config/conf.php from:
 define('error_email',
 'mythweb_errors@'.preg_replace('/.*?\b([\w\-]+\.[\w\-]+)$/', '$1',
 server_domain));

 to

 define('error_email', _or(
 $_SERVER['SERVER_ADMIN'],'mythweb_errors@'.preg_replace('/.*?\b([\w\-]+\.[\w\-]+)$/',
 '$1', server_domain)));

 and including includes/utils.php before the conf.php.

 This would work out better for more people imho.

-- 
Ticket URL: <http://cvs.mythtv.org/trac/ticket/354>
MythTV <http://www.mythtv.org/>
MythTV


More information about the mythtv-commits mailing list