]> p2p-next.cs.pub.ro Git - living-lab-site.git/blobdiff - application/controllers/video.php
malformed category URLs bug fixed
[living-lab-site.git] / application / controllers / video.php
index 019fa2c0437e9fbe2ce58b259d53809eb4507dac..3637f14fbce918396375d8da07ddc17706592c19 100644 (file)
@@ -38,7 +38,11 @@ class Video extends CI_Controller {
                // **
                // Retrieve video information.
                $this->load->model('videos_model');
+               $this->videos_model->inc_video_var($id, 'views');
                $data['video'] = $this->videos_model->get_video($id, $name);
+               $categories = $this->config->item('categories');
+               $data['video']['category_name'] = 
+                       $categories[ $data['video']['category_id'] ];
                $data['plugin_type'] = ($plugin === NULL ? 'auto' : $plugin);
                
                // Display page.