summaryrefslogtreecommitdiff
path: root/program/include/rcube_config.php
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2010-01-28 11:27:16 +0000
committeralecpl <alec@alec.pl>2010-01-28 11:27:16 +0000
commit10eedbe75a2022d65ec349de5f3bd12400191974 (patch)
tree13df2e006a7cbbca30f464877493e4c3f0b67d21 /program/include/rcube_config.php
parent4fc7a7e5f633f10dac29a9bd7e77bb23e3f9585e (diff)
- add file/line definitions to raise_error() calls
Diffstat (limited to 'program/include/rcube_config.php')
-rw-r--r--program/include/rcube_config.php17
1 files changed, 8 insertions, 9 deletions
diff --git a/program/include/rcube_config.php b/program/include/rcube_config.php
index a4f3699d8..85ff714bf 100644
--- a/program/include/rcube_config.php
+++ b/program/include/rcube_config.php
@@ -180,7 +180,7 @@ class rcube_config
{
$this->prop = array_merge($this->prop, $prefs);
}
-
+
/**
* Getter for all config options
@@ -192,6 +192,7 @@ class rcube_config
return $this->prop;
}
+
/**
* Return requested DES crypto key.
*
@@ -204,9 +205,8 @@ class rcube_config
if (!array_key_exists($key, $this->prop))
{
raise_error(array(
- 'code' => 500,
- 'type' => 'php',
- 'file' => __FILE__,
+ 'code' => 500, 'type' => 'php',
+ 'file' => __FILE__, 'line' => __LINE__,
'message' => "Request for unconfigured crypto key \"$key\""
), true, true);
}
@@ -217,9 +217,8 @@ class rcube_config
if (strlen($key) != 24)
{
raise_error(array(
- 'code' => 500,
- 'type' => 'php',
- 'file' => __FILE__,
+ 'code' => 500, 'type' => 'php',
+ 'file' => __FILE__, 'line' => __LINE__,
'message' => "Configured crypto key \"$key\" is not exactly 24 bytes long"
), true, true);
}
@@ -227,6 +226,7 @@ class rcube_config
return $key;
}
+
/**
* Try to autodetect operating system and find the correct line endings
*
@@ -244,9 +244,8 @@ class rcube_config
else
return "\n";
}
-
-
+
/**
* Return the mail domain configured for the given host
*