diff options
Diffstat (limited to 'program/include/rcube_template.php')
-rwxr-xr-x | program/include/rcube_template.php | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/program/include/rcube_template.php b/program/include/rcube_template.php index fef0eac2a..5bd9136a6 100755 --- a/program/include/rcube_template.php +++ b/program/include/rcube_template.php @@ -291,8 +291,8 @@ class rcube_template extends rcube_html_page // prevent from endless loops if ($exit != 'recur' && $this->app->plugins->is_processing('render_page')) { raise_error(array('code' => 505, 'type' => 'php', - 'file' => __FILE__, 'line' => __LINE__, - 'message' => 'Recursion alert: ignoring output->send()'), true, false); + 'file' => __FILE__, 'line' => __LINE__, + 'message' => 'Recursion alert: ignoring output->send()'), true, false); return; } $this->parse($templ, false); @@ -555,7 +555,7 @@ class rcube_template extends rcube_html_page * Parses expression and replaces variables * * @param string Expression statement - * @return string Expression statement + * @return string Expression value */ private function parse_expression($expression) { @@ -563,9 +563,9 @@ class rcube_template extends rcube_html_page array( '/session:([a-z0-9_]+)/i', '/config:([a-z0-9_]+)(:([a-z0-9_]+))?/i', - '/env:([a-z0-9_]+)/i', - '/request:([a-z0-9_]+)/i', - '/cookie:([a-z0-9_]+)/i', + '/env:([a-z0-9_-]+)/i', + '/request:([a-z0-9_-]+)/i', + '/cookie:([a-z0-9_-]+)/i', '/browser:([a-z0-9_]+)/i' ), array( |