summaryrefslogtreecommitdiff
path: root/roundcubemail/program/include/rcube_template.php
diff options
context:
space:
mode:
authoralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2010-09-08 09:40:39 +0000
committeralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2010-09-08 09:40:39 +0000
commit8075033c8f9dae8e12b3e05816c80dd9cdde81b2 (patch)
treeca99a4948f96850fdef77aea4e41a515aa46272a /roundcubemail/program/include/rcube_template.php
parente2f65af45dadd963db66093e75abb92ef0ed128b (diff)
- Small performance improvements
git-svn-id: https://svn.roundcube.net/trunk@3946 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/include/rcube_template.php')
-rwxr-xr-xroundcubemail/program/include/rcube_template.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/roundcubemail/program/include/rcube_template.php b/roundcubemail/program/include/rcube_template.php
index 2c9e95100..f301b3618 100755
--- a/roundcubemail/program/include/rcube_template.php
+++ b/roundcubemail/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;
}