diff --git a/application/configs/navigation.xml b/application/configs/navigation.xml
index b3b20c3..e5d0554 100644
--- a/application/configs/navigation.xml
+++ b/application/configs/navigation.xml
@@ -9,17 +9,24 @@
Th
START_TXT = "Welcome to fiktivkod.org. ...."
ABOUT_TXT = "Fiktiv (fiktivkod.org) is ... that started ..."
-BLOG_TXT = "We at fiktivkod use this blog to tell our stories about happy times and maybe not so happy experience ... "
\ No newline at end of file
+BLOG_TXT = "We at fiktivkod use this blog to tell our stories about happy times and maybe not so happy experience ... "
+
+
+ERROR_404 = "Oops, something went wrong"
+ERROR_TXT_WHAT = "The following went wrong"
\ No newline at end of file
diff --git a/application/languages/se.ini b/application/languages/se.ini
index c83bee5..ffc2d64 100644
--- a/application/languages/se.ini
+++ b/application/languages/se.ini
@@ -10,4 +10,11 @@ LOGIN_TXT = "Ange dina uppgifter nedan för att logga in.
hasIdentity()) + $this->_redirect('/'); + + // Do authentication magic $form = new Zend_Form(); @@ -62,7 +67,8 @@ class AuthController extends Fiktiv_Controller_Action // Destroy the magic! $auth = Zend_Auth::getInstance(); - $auth->clearIdentity(); + if ($auth->hasIdentity()) + $auth->clearIdentity(); $this->_redirect('/'); } diff --git a/application/modules/default/controllers/ErrorController.php b/application/modules/default/controllers/ErrorController.php index e8d89ea..c66fbf1 100644 --- a/application/modules/default/controllers/ErrorController.php +++ b/application/modules/default/controllers/ErrorController.php @@ -6,9 +6,9 @@ class ErrorController extends Zend_Controller_Action { $this->view->args = $this->_request->getParams(); - $error = $this->_request->getParam('error_handler'); + $this->view->error = $this->_request->getParam('error_handler'); - var_dump($error->exception->getTrace()); + } } \ No newline at end of file diff --git a/application/modules/default/views/scripts/auth/login.phtml b/application/modules/default/views/scripts/auth/login.phtml index 5a9691c..2e4a2ea 100644 --- a/application/modules/default/views/scripts/auth/login.phtml +++ b/application/modules/default/views/scripts/auth/login.phtml @@ -2,5 +2,4 @@
=$this->translate('LOGIN_TXT') ?>
-=$this->form ?> - +=$this->form ?> \ No newline at end of file diff --git a/application/modules/default/views/scripts/error/error.phtml b/application/modules/default/views/scripts/error/error.phtml index 852cd8c..34a0bd1 100644 --- a/application/modules/default/views/scripts/error/error.phtml +++ b/application/modules/default/views/scripts/error/error.phtml @@ -1,5 +1,20 @@ -=$this->translate('ERROR_404') ?> -var_dump($this->args); ++ =$this->translate('ERROR_TXT_WHAT') ?>: =$this->error->exception->getMessage() ?> +
-?> \ No newline at end of file +| =$this->translate('u:class') ?> | +=$this->translate('u:function') ?> | +=$this->translate('u:line') ?> | +
|---|---|---|
| =$call['class'] ?> | +=$call['function'] ?> | +=$call['line'] ?> | +