]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - plugins/GNUsocialVideo/actions/postvideo.php
Merge commit 'refs/merge-requests/29' of https://gitorious.org/social/mainline into...
[quix0rs-gnu-social.git] / plugins / GNUsocialVideo / actions / postvideo.php
index db27ecd8e4a0ac9cf870168c18c955146d9746dd..aae0fe98e649a4e3b5cc4280929a8b049c805851 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 /**
  * GNU Social
- * Copyright (C) 2010, Free Software Foundation, Inc.
+ * Copyright (C) 2011, Free Software Foundation, Inc.
  *
  * PHP version 5
  *
@@ -22,7 +22,7 @@
  * @category  Widget
  * @package   GNU Social
  * @author    Ian Denhardt <ian@zenhack.net>
- * @copyright 2010 Free Software Foundation, Inc.
+ * @copyright 2011 Free Software Foundation, Inc.
  * @license   http://www.fsf.org/licensing/licenses/agpl-3.0.html AGPL 3.0
  */
 
@@ -34,7 +34,7 @@ class PostvideoAction extends Action {
     var $user = null;
     var $url = null;
 
-    function prepare($args)
+    function prepare(array $args=array())
     {
         parent::prepare($args);
         $this->user = common_current_user();
@@ -54,7 +54,7 @@ class PostvideoAction extends Action {
         return true;
     }
    
-    function handle($args)
+    function handle(array $args=array())
     {
         parent::handle($args);
 
@@ -73,7 +73,11 @@ class PostvideoAction extends Action {
 
         $profile = $this->user->getProfile();
 
-        $vid = Video::saveNew($profile, $this->url, array());
+        $options = array();
+        
+        ToSelector::fillOptions($this, $options);
+
+        $vid = Video::saveNew($profile, $this->url, $options);
 
         common_redirect($vid->uri, 303);
     }