Commit ed6248c42cfb48ea526bb26dbc4db79ccf2be184
1 parent
cec0068a
refactored to use control.inc generateController routine
git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@472 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
2 changed files
with
3 additions
and
2 deletions
lib/session/control.inc
| ... | ... | @@ -46,7 +46,8 @@ function controllerRedirect($action, $queryString) { |
| 46 | 46 | * @return string the controller url |
| 47 | 47 | */ |
| 48 | 48 | function generateControllerUrl($action) { |
| 49 | - return "/control.php?action=$action"; | |
| 49 | + global $default; | |
| 50 | + return $default->owl_root_url . "/control.php?action=$action"; | |
| 50 | 51 | } |
| 51 | 52 | |
| 52 | 53 | /** | ... | ... |
presentation/login.php
| ... | ... | @@ -74,7 +74,7 @@ if ($loginAction == "loginForm") { |
| 74 | 74 | $url = urldecode($redirect); |
| 75 | 75 | // else redirect to the dashboard |
| 76 | 76 | } else { |
| 77 | - $url = $default->owl_root_url . "/control.php?action=dashboard"; | |
| 77 | + $url = generateControllerUrl("dashboard"); | |
| 78 | 78 | } |
| 79 | 79 | break; |
| 80 | 80 | // login disabled | ... | ... |