diff options
author | alecpl <alec@alec.pl> | 2010-01-28 11:27:16 +0000 |
---|---|---|
committer | alecpl <alec@alec.pl> | 2010-01-28 11:27:16 +0000 |
commit | 10eedbe75a2022d65ec349de5f3bd12400191974 (patch) | |
tree | 13df2e006a7cbbca30f464877493e4c3f0b67d21 /program/include/rcmail.php | |
parent | 4fc7a7e5f633f10dac29a9bd7e77bb23e3f9585e (diff) |
- add file/line definitions to raise_error() calls
Diffstat (limited to 'program/include/rcmail.php')
-rw-r--r-- | program/include/rcmail.php | 21 |
1 files changed, 9 insertions, 12 deletions
diff --git a/program/include/rcmail.php b/program/include/rcmail.php index 28ccb0cb0..1afb7d72a 100644 --- a/program/include/rcmail.php +++ b/program/include/rcmail.php @@ -506,17 +506,16 @@ class rcmail } else { raise_error(array( - 'code' => 600, - 'type' => 'php', + 'code' => 600, 'type' => 'php', + 'file' => __FILE__, 'line' => __LINE__, 'message' => "Failed to create a user record. Maybe aborted by a plugin?" - ), true, false); + ), true, false); } } else { raise_error(array( - 'code' => 600, - 'type' => 'php', - 'file' => RCMAIL_CONFIG_DIR."/main.inc.php", + 'code' => 600, 'type' => 'php', + 'file' => __FILE__, 'line' => __LINE__, 'message' => "Acces denied for new user $username. 'auto_create_user' is disabled" ), true, false); } @@ -947,9 +946,8 @@ class rcmail else { raise_error(array( - 'code' => 500, - 'type' => 'php', - 'file' => __FILE__, + 'code' => 500, 'type' => 'php', + 'file' => __FILE__, 'line' => __LINE__, 'message' => "Could not perform encryption; make sure Mcrypt is installed or lib/des.inc is available" ), true, true); } @@ -993,9 +991,8 @@ class rcmail else { raise_error(array( - 'code' => 500, - 'type' => 'php', - 'file' => __FILE__, + 'code' => 500, 'type' => 'php', + 'file' => __FILE__, 'line' => __LINE__, 'message' => "Could not perform decryption; make sure Mcrypt is installed or lib/des.inc is available" ), true, true); } |