From 44872d9f45da7d32d733fec2857f5a95a1825aab Mon Sep 17 00:00:00 2001 From: Claude Date: Wed, 3 Sep 2014 12:43:38 +0200 Subject: [PATCH] Thanks to BalzySte for the hint! --- htdocs/application/models/pastes.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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'];