]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - plugins/GNUsocialVideo/showvideo.php
More info for a proper, fancy-url lighttpd setup
[quix0rs-gnu-social.git] / plugins / GNUsocialVideo / showvideo.php
index be4f18d10b6203c8dd49416443ee8bc2ac6c445d..628d08642af2147cb064ec2c78bdd5e9bf3ebaaa 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
  *
@@ -38,7 +38,7 @@ class ShowvideoAction extends ShownoticeAction
     {
         OwnerDesignAction::prepare($args);
         $this->id = $this->trimmed('id');
-        $this->vid = Video::staticGet('id', $this->id);
+        $this->vid = Video::getKV('id', $this->id);
 
         if (empty($this->vid)) {
             throw new ClientException(_('No such video.'), 404);
@@ -50,7 +50,7 @@ class ShowvideoAction extends ShownoticeAction
             throw new ClientException(_('No such video'), 404);
         }
 
-        $this->user = User::staticGet('id', $this->vid->profile_id);
+        $this->user = User::getKV('id', $this->vid->profile_id);
 
         if (empty($this->user)) {
             throw new ClientException(_('No such user.'), 404);