diff options
author | Antonio Gallo <tonicucoz@gmail.com> | 2011-02-18 02:19:48 +0000 |
---|---|---|
committer | Antonio Gallo <tonicucoz@gmail.com> | 2011-02-18 02:19:48 +0000 |
commit | a855ea347f8668cefb04360b2d7158d8939e07ac (patch) | |
tree | 0f20e42e542647f7151d9f78b3911a8edf2861b7 /h-source/Application/Controllers/WikiController.php | |
parent | 0f42e1a7816893e083f49c933d1393a102a3510e (diff) |
improved wiki
Diffstat (limited to 'h-source/Application/Controllers/WikiController.php')
-rw-r--r-- | h-source/Application/Controllers/WikiController.php | 5 |
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 { |