summaryrefslogtreecommitdiff
path: root/program/include
diff options
context:
space:
mode:
authorThomas Bruederli <thomas@roundcube.net>2012-11-17 16:59:49 +0100
committerThomas Bruederli <thomas@roundcube.net>2012-11-17 16:59:49 +0100
commit8fb4f05725b90bee03aaf284adb21818789a15c0 (patch)
treeb599e17c6aff8075fb18dcc8862ab4cfe8cf1073 /program/include
parent6ddb16d181e285d4f0ef0ef55bdd0ba787f1b583 (diff)
Move default value for client_mimetypes to rcube_config; make sure an array is returned
Diffstat (limited to 'program/include')
-rw-r--r--program/include/rcube_config.php9
1 files changed, 8 insertions, 1 deletions
diff --git a/program/include/rcube_config.php b/program/include/rcube_config.php
index dab539412..7d206ffdc 100644
--- a/program/include/rcube_config.php
+++ b/program/include/rcube_config.php
@@ -207,8 +207,15 @@ class rcube_config
$rcube = rcube::get_instance();
- if ($name == 'timezone' && isset($this->prop['_timezone_value']))
+ if ($name == 'timezone' && isset($this->prop['_timezone_value'])) {
$result = $this->prop['_timezone_value'];
+ }
+ else if ($name == 'client_mimetypes') {
+ if ($result == null && $def == null)
+ $result = 'text/plain,text/html,text/xml,image/jpeg,image/gif,image/png,image/bmp,image/tiff,application/x-javascript,application/pdf,application/x-shockwave-flash';
+ if ($result && is_string($result))
+ $result = explode(',', $result);
+ }
$plugin = $rcube->plugins->exec_hook('config_get', array(
'name' => $name, 'default' => $def, 'result' => $result));