Changeset 2213 in subversion


Ignore:
Timestamp:
Jan 5, 2009 5:13:08 AM (4 years ago)
Author:
robin
Message:

Add required parameters to raise_error() calls.

Location:
trunk/roundcubemail/program
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/roundcubemail/program/include/rcube_ldap.php

    r2157 r2213  
    7272     
    7373    if (!function_exists('ldap_connect')) 
    74       raise_error(array('type' => 'ldap', 'message' => "No ldap support in this installation of PHP"), true); 
     74      raise_error(array('code' => 100, 'type' => 'ldap', 'message' => "No ldap support in this installation of PHP"), true); 
    7575 
    7676    if (is_resource($this->conn)) 
     
    123123    } 
    124124    else 
    125       raise_error(array('type' => 'ldap', 'message' => "Could not connect to any LDAP server, tried $host:{$this->prop[port]} last"), true); 
     125      raise_error(array('code' => 100, 'type' => 'ldap', 'message' => "Could not connect to any LDAP server, tried $host:{$this->prop[port]} last"), true); 
    126126 
    127127    // See if the directory is writeable. 
  • trunk/roundcubemail/program/lib/utf8.class.php

    r1677 r2213  
    109109    //print($err_code . " : " . $err_text . "<hr>\n"); 
    110110    raise_error(array('code' => 500, 
     111                      'type' => 'php', 
    111112                      'file' => __FILE__, 
    112113                      'message' => $err_text), TRUE, FALSE); 
  • trunk/roundcubemail/program/steps/mail/sendmail.inc

    r2193 r2213  
    3131 
    3232if (!isset($_SESSION['compose']['id'])) { 
    33   raise_error(array('code' => 500, 'file' => __FILE__, 'message' => "Invalid compose ID"), true, false); 
     33  raise_error(array('code' => 500, 'type' => 'smtp', 'file' => __FILE__, 'message' => "Invalid compose ID"), true, false); 
    3434  console("Sendmail error", $_SESSION['compose']); 
    3535  $OUTPUT->show_message("An internal error occured. Please try again.", 'error'); 
  • trunk/roundcubemail/program/steps/mail/spell_pspell.inc

    r1980 r2213  
    2323    raise_error(array( 
    2424      'code' => 500, 
     25      'type' => 'php', 
    2526      'file' => __FILE__, 
    2627      'message' => "Pspell extension not available"), true, false); 
Note: See TracChangeset for help on using the changeset viewer.