summaryrefslogtreecommitdiff
path: root/program/include/rcube_template.php
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2010-09-08 09:40:39 +0000
committeralecpl <alec@alec.pl>2010-09-08 09:40:39 +0000
commit2aa2b332f6e216ceeabc36ef6b942c40d91bda5a (patch)
tree08a21f5cb3d9f7bc706fa34a73aba37baff9a03c /program/include/rcube_template.php
parentec581c106e51a46f4536caec397e2b34821db5de (diff)
- Small performance improvements
Diffstat (limited to 'program/include/rcube_template.php')
-rwxr-xr-xprogram/include/rcube_template.php5
1 files changed, 4 insertions, 1 deletions
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;
}