projects
/
platal.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
calendrier iCal des anniversaires
[platal.git]
/
plugins
/
modifier.url.php
diff --git
a/plugins/modifier.url.php
b/plugins/modifier.url.php
index
f3b026f
..
819ac6f
100644
(file)
--- a/
plugins/modifier.url.php
+++ b/
plugins/modifier.url.php
@@
-21,14
+21,9
@@
function smarty_modifier_url($string)
{
function smarty_modifier_url($string)
{
+ global $globals;
if(strpos($string, "http://")!==false)
return $string;
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;
}
?>
}
?>