Remove logout link. Disable debug
This commit is contained in:
parent
8cd4804652
commit
6dc37ea5a6
|
|
@ -41,7 +41,7 @@ error_reporting(E_ALL & ~E_STRICT & ~E_DEPRECATED);
|
|||
* In production mode, flash messages redirect after a time interval.
|
||||
* In development mode, you need to click the flash message to continue.
|
||||
*/
|
||||
Configure::write('debug', 1);
|
||||
Configure::write('debug', 0);
|
||||
|
||||
Configure::write('version', '1.0.1');
|
||||
|
||||
|
|
|
|||
|
|
@ -46,12 +46,9 @@ echo $scripts_for_layout;
|
|||
<div id="username">
|
||||
|
||||
<?php
|
||||
if (isset($currentuser) == FALSE) {
|
||||
echo $html->link('Login', '/users/login');
|
||||
} else {
|
||||
$logoutlink = $html->link('Logout', '/users/logout');
|
||||
echo $html->link($currentuser['User']['username'], '/users/view/' . $currentuser['User']['id']) . ' (' . $logoutlink . ')';
|
||||
}
|
||||
echo $html->link($currentuser['User']['username'], '/users/view/' . $currentuser['User']['id']);
|
||||
|
||||
?>
|
||||
</div>
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue