diff --git a/htdocs/application/controllers/main.php b/htdocs/application/controllers/main.php index e835cd6..383e0b3 100755 --- a/htdocs/application/controllers/main.php +++ b/htdocs/application/controllers/main.php @@ -301,6 +301,7 @@ class Main extends CI_Controller if ($check) { + $this->load->helper('text'); $paste = $this->pastes->getPaste(3); $data = $this->pastes->getReplies(3); $data['page_title'] = $paste['title'] . ' - ' . $this->config->item('site_name'); @@ -352,6 +353,7 @@ class Main extends CI_Controller if ($this->uri->segment(2) == 'rss') { + $this->load->helper('text'); $data['page_title'] = $this->config->item('site_name'); $data['feed_url'] = site_url('lists/rss'); $data['replies'] = $data['pastes']; diff --git a/htdocs/application/models/pastes.php b/htdocs/application/models/pastes.php index 58510ef..2cae1b2 100755 --- a/htdocs/application/models/pastes.php +++ b/htdocs/application/models/pastes.php @@ -311,7 +311,7 @@ class Pastes extends CI_Model { $pid = $this->uri->segment($seg); } - $this->db->select('title, name, created, pid, paste'); + $this->db->select('title, name, created, pid, paste, raw'); $this->db->where('replyto', $pid); $this->db->order_by('id', 'desc'); $this->db->limit($amount); @@ -327,6 +327,7 @@ class Pastes extends CI_Model $data['replies'][$n]['created'] = $row['created']; $data['replies'][$n]['pid'] = $row['pid']; $data['replies'][$n]['paste'] = $row['paste']; + $data['replies'][$n]['raw'] = $row['raw']; $n++; } } diff --git a/htdocs/application/views/view/rss.php b/htdocs/application/views/view/rss.php index b90ba37..2dccf75 100644 --- a/htdocs/application/views/view/rss.php +++ b/htdocs/application/views/view/rss.php @@ -9,6 +9,7 @@ xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"> <?php echo $page_title; ?> + en @@ -16,9 +17,10 @@ xmlns:slash="http://purl.org/rss/1.0/modules/slash/"> <?php echo $paste['title']; ?> - + + ]]> ]]>