projects
/
squirrelmail.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Strip HTML for hyperlink creation from core
[squirrelmail.git]
/
functions
/
page_header.php
diff --git
a/functions/page_header.php
b/functions/page_header.php
index b00acdca8cbe2b5ac72ab62783b85002f9582766..3bd771f35ccf75adbc88836b9f9fc77953b4b214 100644
(file)
--- a/
functions/page_header.php
+++ b/
functions/page_header.php
@@
-147,11
+147,8
@@
EOS;
* @param string target the target frame for this link
*/
function makeInternalLink($path, $text, $target='') {
* @param string target the target frame for this link
*/
function makeInternalLink($path, $text, $target='') {
- global $base_uri;
+ global $base_uri
, $oTemplate
;
// sqgetGlobalVar('base_uri', $base_uri, SQ_SESSION);
// sqgetGlobalVar('base_uri', $base_uri, SQ_SESSION);
- if ($target != '') {
- $target = " target=\"$target\"";
- }
// This is an inefficient hook and is only used by
// one plugin that still needs to patch this code,
// This is an inefficient hook and is only used by
// one plugin that still needs to patch this code,
@@
-162,7
+159,10
@@
function makeInternalLink($path, $text, $target='') {
//
//do_hook('internal_link', $text);
//
//do_hook('internal_link', $text);
- return '<a href="'.$base_uri.$path.'"'.$target.'>'.$text.'</a>';
+ $oTemplate->assign('uri', $base_uri . $path);
+ $oTemplate->assign('text', $text);
+ $oTemplate->assign('target', $target);
+ return $oTemplate->fetch('hyperlink.tpl');
}
/**
}
/**