X-Git-Url: http://p2p-next.cs.pub.ro/gitweb/?a=blobdiff_plain;f=application%2Fmodels%2Fvideos_model.php;h=64ee48ef888260120d09deb1c7fbed8762703f28;hb=2881d1393f363efd3c5f0e9b58706e6e35e85717;hp=2b0add64285893cfeb93895ed351dc4c54ab85c4;hpb=480a21049384e47afe920e73972ca336ec8e6a54;p=living-lab-site.git diff --git a/application/models/videos_model.php b/application/models/videos_model.php index 2b0add6..64ee48e 100644 --- a/application/models/videos_model.php +++ b/application/models/videos_model.php @@ -189,6 +189,7 @@ class Videos_model extends CI_Model { 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 @@ -240,6 +241,10 @@ class Videos_model extends CI_Model { // Thumbnails $video['thumbs'] = $this->get_thumbs($video['name'], $video['thumbs_count']); + // Shorted description + $video['shorted_description'] = character_limiter( + $video['description'], 128); + return $video; }