2008-03-09 Christian Bayle <bayle@debian.org>
- * snippet/*: Migrate to util_make_url() and util_make_link()
+ * plugins/*: Migrate to util_make_url() and util_make_link()
+ * snippet/*: Ditto
* include/*: Ditto
* admin/*: Ditto
* my/*: Ditto
if ($row_grp && $viewthisrow) {
print '<table border="0" cellpadding="0" width="100%"><tr valign="top"><td colspan="2"><span style="font-family:arial,helvetica">';
- print '$i_proj. <a href="'.$GLOBALS['sys_urlprefix'].'/projects/'. strtolower($row_grp['unix_group_name']) .'/"><strong>'
- .htmlspecialchars($row_grp['group_name']).'</strong></a> ';
+ print '$i_proj. '.util_make_link ('/projects/'. strtolower($row_grp['unix_group_name']) .'/','<strong>'.htmlspecialchars($row_grp['group_name']).'</strong> ');
if ($row_grp['short_description']) {
print "- " . htmlspecialchars($row_grp['short_description']);
}
reset($arbre);
//construction automatique de l'arbre format : (num_fils, num_pere,nom,nom_unix)
while (list($key2, $sons2) = each($arbre)) {
- print "d.add(".$key2.",".$sons2.",'".$project_name[$key2][0]."','".$GLOBALS['sys_urlprefix']."/projects/".$project_name[$key2][1]."/');\n";
+ print "d.add(".$key2.",".$sons2.",'".$project_name[$key2][0]."','".util_make_link ("/projects/".$project_name[$key2][1] ."/") . "');\n";
}
?>
plugin_hook('add_cal_link_father',$params);
-header("Location: ".$GLOBALS['sys_urlprefix']."/project/admin/index.php?group_id=$sub_group_id");
+header("Location: ".util_make_url ('/project/admin/index.php?group_id='.$sub_group_id));
?>