From 2aa2b332f6e216ceeabc36ef6b942c40d91bda5a Mon Sep 17 00:00:00 2001 From: alecpl Date: Wed, 8 Sep 2010 09:40:39 +0000 Subject: - Small performance improvements --- program/include/rcube_template.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'program/include/rcube_template.php') diff --git a/program/include/rcube_template.php b/program/include/rcube_template.php index 2c9e95100..f301b3618 100755 --- a/program/include/rcube_template.php +++ b/program/include/rcube_template.php @@ -444,7 +444,10 @@ class rcube_template extends rcube_html_page */ public function abs_url($str) { - return preg_replace('/^\//', $this->config['skin_path'].'/', $str); + if ($str[0] == '/') + return $this->config['skin_path'] . $str; + else + return $str; } -- cgit v1.2.3