aboutsummaryrefslogtreecommitdiff
path: root/h-source/Application/Controllers/WikiController.php
diff options
context:
space:
mode:
Diffstat (limited to 'h-source/Application/Controllers/WikiController.php')
-rw-r--r--h-source/Application/Controllers/WikiController.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/h-source/Application/Controllers/WikiController.php b/h-source/Application/Controllers/WikiController.php
index a1b39ce..8f389e5 100644
--- a/h-source/Application/Controllers/WikiController.php
+++ b/h-source/Application/Controllers/WikiController.php
@@ -139,7 +139,7 @@ class WikiController extends BaseController
}
else
{
- $this->redirect("users/login/".$this->lang."?redirect=".$this->controller."/page/".$this->lang."/".encodeUrl($title),0);
+ header('Location: http://'.DOMAIN_NAME."/users/login/".$this->lang."?redirect=".$this->controller."/page/".$this->lang."/".titleForRedirect($title));
}
}
else
@@ -198,7 +198,8 @@ class WikiController extends BaseController
{
$clean['idWiki'] = $rev->getIdPage($res_rev[0]['wiki_revisions']['id_rev']);
$newTitle = $this->m['WikiModel']->getTheModelName($clean['idWiki']);
- $this->redirect('wiki/page/'.$this->lang.'/'.encodeUrl($newTitle));
+ $n = titleForRedirect($newTitle);
+ header('Location: http://'.DOMAIN_NAME.'/wiki/page/'.$this->lang.'/'.$n);
}
else
{