Commit 8c3f4739e18e121705fcc47584780bf0b9d298e7
1 parent
89ee2728
updated getControllerLink to take the link text as a param
git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@879 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
1 changed file
with
4 additions
and
2 deletions
lib/session/control.inc
| ... | ... | @@ -59,10 +59,12 @@ function generateControllerUrl($action, $queryString = "") { |
| 59 | 59 | * Generates a link via the control page, with the passed action |
| 60 | 60 | * |
| 61 | 61 | * @param string the controller action to generate a link for |
| 62 | + * @param string the text of the link | |
| 63 | + * @param string the querystring (optional) | |
| 62 | 64 | * @return string the generated href |
| 63 | 65 | */ |
| 64 | -function generateControllerLink($action, $queryString = "") { | |
| 65 | - return "<a href=\"" . generateControllerUrl($action, $queryString) . "\">"; | |
| 66 | +function generateControllerLink($action, $linkText, $queryString = "") { | |
| 67 | + return "<a href=\"" . generateControllerUrl($action, $queryString) . "\">$linkText</a>"; | |
| 66 | 68 | } |
| 67 | 69 | |
| 68 | 70 | /** | ... | ... |