fixed coding arror in app/config/global.php and modified app/models/navbar.php