]> p2p-next.cs.pub.ro Git - living-lab-site.git/blobdiff - application/models/videos_model.php
OpenID login and comment improoved
[living-lab-site.git] / application / models / videos_model.php
index 2b0add64285893cfeb93895ed351dc4c54ab85c4..64ee48ef888260120d09deb1c7fbed8762703f28 100644 (file)
@@ -189,6 +189,7 @@ class Videos_model extends CI_Model {
        public function get_video($id, $name = NULL)
        {
                $this->load->helper('video');
        public function get_video($id, $name = NULL)
        {
                $this->load->helper('video');
+               $this->load->helper('text');
                
                $query = $this->db->query("SELECT v.*, u.username 
                                                                FROM `videos` v, `users` u
                
                $query = $this->db->query("SELECT v.*, u.username 
                                                                FROM `videos` v, `users` u
@@ -240,6 +241,10 @@ class Videos_model extends CI_Model {
                // Thumbnails
                $video['thumbs'] = $this->get_thumbs($video['name'], $video['thumbs_count']);
                
                // Thumbnails
                $video['thumbs'] = $this->get_thumbs($video['name'], $video['thumbs_count']);
                
+               // Shorted description
+               $video['shorted_description'] = character_limiter(
+                               $video['description'], 128);
+               
                return $video;
        }
        
                return $video;
        }