diff --git a/htdocs/application/models/pastes.php b/htdocs/application/models/pastes.php index 2200dec..434e91a 100644 --- a/htdocs/application/models/pastes.php +++ b/htdocs/application/models/pastes.php @@ -440,7 +440,7 @@ class Pastes extends CI_Model $data['pastes'][$n]['title'] = $row['title']; $data['pastes'][$n]['name'] = $row['name']; $data['pastes'][$n]['created'] = $row['created']; - $data['pastes'][$n]['lang'] = $row['lang']; + $data['pastes'][$n]['lang'] = $this->languages->code_to_description($row['lang']); $data['pastes'][$n]['pid'] = $row['pid']; if ($this->uri->segment(2) == 'rss') @@ -483,7 +483,7 @@ class Pastes extends CI_Model $data['pastes'][$n]['title'] = $row['title']; $data['pastes'][$n]['name'] = $row['name']; $data['pastes'][$n]['created'] = $row['created']; - $data['pastes'][$n]['lang'] = $row['lang']; + $data['pastes'][$n]['lang'] = $this->languages->code_to_description($row['lang']); $data['pastes'][$n]['pid'] = $row['pid']; $data['pastes'][$n]['raw'] = $row['raw']; $data['pastes'][$n]['hits'] = $row['hits'];