summaryrefslogtreecommitdiff
path: root/program/include
diff options
context:
space:
mode:
authorthomascube <thomas@roundcube.net>2010-02-18 18:01:31 +0000
committerthomascube <thomas@roundcube.net>2010-02-18 18:01:31 +0000
commit030db5b6c0489158b5a4cf1ab6d2542db0519de8 (patch)
tree7c6664570750c1d11f44439e56494d2df2bfcd36 /program/include
parentaea36211d05cd219517d4e4ab102f261909f1e81 (diff)
Better regex for template expressions + fix indentation
Diffstat (limited to 'program/include')
-rwxr-xr-xprogram/include/rcube_template.php12
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(