X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=actions%2Fshowprofiletag.php;h=1bb126bfbed879e31a248939f0cd7e015b212d1e;hb=1ae5ea8f4cf40113a14a183b754101177f99ba32;hp=d96acec5909971179af04fcd377f599fd1f5fc7c;hpb=930b09677c7a00a357ed145840434e760b076135;p=quix0rs-gnu-social.git diff --git a/actions/showprofiletag.php b/actions/showprofiletag.php index d96acec590..1bb126bfbe 100644 --- a/actions/showprofiletag.php +++ b/actions/showprofiletag.php @@ -35,12 +35,12 @@ class ShowprofiletagAction extends Action { var $notice, $tagger, $peopletag, $userProfile; - function isReadOnly($args) + function isReadOnly(array $args=array()) { return true; } - function prepare($args) + function prepare(array $args=array()) { parent::prepare($args); @@ -96,14 +96,14 @@ class ShowprofiletagAction extends Action NOTICES_PER_PAGE + 1); if ($this->page > 1 && $this->notice->N == 0) { - // TRANS: Server error when page not found (404). - $this->serverError(_('No such page.'), $code = 404); + // TRANS: Client error when page not found (404). + $this->clientError(_('No such page.'), 404); } return true; } - function handle($args) + function handle(array $args=array()) { parent::handle($args);