Skip to content

Commit

Permalink
Update Inspection.php
Browse files Browse the repository at this point in the history
  • Loading branch information
pavlosb committed Jun 29, 2024
1 parent 8e8ff7c commit 61e886b
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions application/controllers/Inspection.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,17 @@ public function __construct()
$this->load->helper('form');
$this->lang->load('itin','greek');
$sesdata = $this->session->userdata;
$this->data = array(
'user_lang' => $sesdata['site_lang'],
'usrgrp' => 3
);
$this->data['usrgrp'] = 3;
if (isset($sesdata['user_lang'])) {
$this->data['user_lang'] = $sesdata['site_lang'];
} else {
$this->data['user_lang'] = "greek";
}

//$this->data = array(
//'user_lang' => $sesdata['site_lang'],
//'usrgrp' => 3
//);

}
public function index()
Expand Down

0 comments on commit 61e886b

Please sign in to comment.