first stage finished: ready to publish to production; does not support users and...
[living-lab-site.git] / application / controllers / video.php
index 45e66d3..3637f14 100644 (file)
@@ -40,6 +40,9 @@ class Video extends CI_Controller {
                $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.