Changeset 1670

Show
Ignore:
Timestamp:
09/04/2007 06:35:13 PM (16 months ago)
Author:
jeena
Message:

readded admin-lang, we need it for admin mail

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/log.php

    r1669 r1670  
    170170      die(); 
    171171     } 
    172      else { 
     172     elseif( JLOG_INFO_BY_COMMENT ) { 
     173                         // we need this for some mail texts 
     174                         require(JLOG_BASEPATH.'lang'.DIRECTORY_SEPARATOR.'lang-admin.'.JLOG_LANGUAGE.'.inc.php'); 
     175         
    173176                         $urlarray = parse_url(JLOG_PATH); 
    174177                         $com_form['email'] = empty($com_form['email']) ? "no-reply@".$urlarray['host'] : $com_form['email']; 
     
    192195                   $mail = $plugins->callHook('adminMail', $mail, $blogentry); 
    193196                          
    194        if(empty($mail['nomail']) and JLOG_INFO_BY_COMMENT) @mail(JLOG_EMAIL, $mail['topic'], $mail['text'], $mail['headers']); 
     197       if(empty($mail['nomail'])) @mail(JLOG_EMAIL, $mail['topic'], $mail['text'], $mail['headers']); 
    195198      } 
    196199