diff options
author | Aleksander Machniak <alec@alec.pl> | 2012-05-26 20:00:20 +0200 |
---|---|---|
committer | Aleksander Machniak <alec@alec.pl> | 2012-05-26 20:00:20 +0200 |
commit | 089e53c61752fa1fd262a0055eff47bc21dac1eb (patch) | |
tree | dc1106d283bee80e2cd9b04ccb400f6910d92d2f /program/include/rcube_output_html.php | |
parent | 37202827d3481230433958258f64c636d3e9fdf4 (diff) |
CS, tabs to spaces
Diffstat (limited to 'program/include/rcube_output_html.php')
-rw-r--r-- | program/include/rcube_output_html.php | 32 |
1 files changed, 18 insertions, 14 deletions
diff --git a/program/include/rcube_output_html.php b/program/include/rcube_output_html.php index fc6b3a200..142755bcf 100644 --- a/program/include/rcube_output_html.php +++ b/program/include/rcube_output_html.php @@ -1229,21 +1229,21 @@ class rcube_output_html extends rcube_output */ protected function file_callback($matches) { - $file = $matches[3]; + $file = $matches[3]; // correct absolute paths - if ($file[0] == '/') { - $file = $this->base_path . $file; + if ($file[0] == '/') { + $file = $this->base_path . $file; } // add file modification timestamp - if (preg_match('/\.(js|css)$/', $file)) { + if (preg_match('/\.(js|css)$/', $file)) { if ($fs = @filemtime($file)) { $file .= '?s=' . $fs; } } - return $matches[1] . '=' . $matches[2] . $file . $matches[4]; + return $matches[1] . '=' . $matches[2] . $file . $matches[4]; } @@ -1564,16 +1564,20 @@ class rcube_output_html extends rcube_output 'GB2312' => 'GB2312 ('.$this->app->gettext('chinese').')', ); - if (!empty($_POST['_charset'])) - $set = $_POST['_charset']; - else if (!empty($attrib['selected'])) - $set = $attrib['selected']; - else - $set = $this->get_charset(); + if (!empty($_POST['_charset'])) { + $set = $_POST['_charset']; + } + else if (!empty($attrib['selected'])) { + $set = $attrib['selected']; + } + else { + $set = $this->get_charset(); + } - $set = strtoupper($set); - if (!isset($charsets[$set])) - $charsets[$set] = $set; + $set = strtoupper($set); + if (!isset($charsets[$set])) { + $charsets[$set] = $set; + } $select = new html_select($field_attrib); $select->add(array_values($charsets), array_keys($charsets)); |