X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=actions%2Fredirecturl.php;h=62418df21709640c2bc79f56aca461cf7928ae09;hb=261ccfac8699534ff584a2f93d5dcd384529d855;hp=2aca4fe02b95ebe82adf713d85d76ca05a2d6626;hpb=31c1177970124cee31823cab3a11542c23b4126d;p=quix0rs-gnu-social.git diff --git a/actions/redirecturl.php b/actions/redirecturl.php index 2aca4fe02b..62418df217 100644 --- a/actions/redirecturl.php +++ b/actions/redirecturl.php @@ -70,7 +70,7 @@ class RedirecturlAction extends Action throw new ClientException(_('No id parameter.')); } - $this->file = File::staticGet('id', $this->id); + $this->file = File::getKV('id', $this->id); if (empty($this->file)) { // TRANS: Client exception thrown when an invalid ID parameter was provided for a file. @@ -93,7 +93,6 @@ class RedirecturlAction extends Action function handle($argarray=null) { common_redirect($this->file->url, 307); - return; } /** @@ -105,7 +104,7 @@ class RedirecturlAction extends Action * * @return boolean is read only action? */ - function isReadOnly($args) + function isReadOnly(array $args=array()) { return true; }