projects
/
living-lab-site.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
working at user login
[living-lab-site.git]
/
application
/
controllers
/
video.php
diff --git
a/application/controllers/video.php
b/application/controllers/video.php
index
019fa2c
..
4a15ba5
100644
(file)
--- a/
application/controllers/video.php
+++ b/
application/controllers/video.php
@@
-31,14
+31,16
@@
class Video extends CI_Controller {
*/
public function watch($id, $name = NULL, $plugin = NULL)
{
*/
public function watch($id, $name = NULL, $plugin = NULL)
{
- $this->load->helper('url');
-
// **
// ** LOADING MODEL
// **
// Retrieve video information.
$this->load->model('videos_model');
// **
// ** LOADING MODEL
// **
// 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);
$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.
$data['plugin_type'] = ($plugin === NULL ? 'auto' : $plugin);
// Display page.