]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - actions/apiexternalprofileshow.php
Merge branch 'remove_broken_plugins_from_default' into 'nightly'
[quix0rs-gnu-social.git] / actions / apiexternalprofileshow.php
index 5abb2e3c74d088147b094f10ae8b4c5433357cef..4e8419cf6b60723f2a561a4a5717ac26865fd2ee 100644 (file)
@@ -42,7 +42,7 @@ class ApiExternalProfileShowAction extends ApiPrivateAuthAction
      * @return boolean success flag
      *
      */
-    protected function prepare($args)
+    protected function prepare(array $args=array())
     {
         parent::prepare($args);
 
@@ -53,7 +53,7 @@ class ApiExternalProfileShowAction extends ApiPrivateAuthAction
         $profileurl = urldecode($this->arg('profileurl'));        
 
         // TODO: Make this more ... unique!
-        $this->profile = Profile::staticGet('profileurl', $profileurl);        
+        $this->profile = Profile::getKV('profileurl', $profileurl);        
 
         if (!($this->profile instanceof Profile)) {
             // TRANS: Client error displayed when requesting profile information for a non-existing profile.