From 4a59f788c34f9761565684466f11cec191191a88 Mon Sep 17 00:00:00 2001 From: x2001corpet Date: Wed, 28 Sep 2005 06:54:15 +0000 Subject: [PATCH] url => rel git-svn-id: svn+ssh://murphy/home/svn/platal/trunk@64 839d8a87-29fc-0310-9880-83ba4fa771e5 --- plugins/modifier.url.php | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/plugins/modifier.url.php b/plugins/modifier.url.php index f3b026f..819ac6f 100644 --- a/plugins/modifier.url.php +++ b/plugins/modifier.url.php @@ -21,14 +21,9 @@ function smarty_modifier_url($string) { + global $globals; if(strpos($string, "http://")!==false) return $string; - $chemins = Array('', '../', '../../'); - foreach ($chemins as $ch) { - if (file_exists($ch.'../htdocs/')) { - return $ch.$string; - } - } - return ''; + return $globals->baseurl."/".$string; } ?> -- 2.1.4